# **************************************************************************** # # # # ::: :::::::: # # Dockerfile.nginx :+: :+: :+: # # +:+ +:+ +:+ # # By: apommier +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/03/19 09:28:32 by apommier #+# #+# # # Updated: 2023/04/07 13:38:20 by apommier ### ########.fr # # # # **************************************************************************** # FROM nginx:latest RUN apt-get update -y RUN apt-get install -y postgresql-client # RUN apt update -y # RUN apt-get install -y openssl # RUN mkdir -p /etc/ssl/private # RUN mkdir -p /etc/ssl/certs # RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt -subj "/C=FR/ST=17/L=StJeanDeLiversay/O=42/CN=apommier" COPY conf/nginx.conf /etc/nginx/conf.d/default.conf