ft_transcendence/dockerfiles/Dockerfile.nginx
2023-05-02 19:15:50 +02:00

24 lines
1.3 KiB
Nginx Configuration File

# **************************************************************************** #
# #
# ::: :::::::: #
# Dockerfile.nginx :+: :+: :+: #
# +:+ +:+ +:+ #
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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