Files
METH_Transcendence/srcs/requirements/nginx/Dockerfile
Kum1ta d27ab24c5e docker compose (Ready) :
- nginx
       - proxy_pass on port 5000
       - static available at url "xxxx/static/<file>
   - djangoserver
       - just a program with infinite while for test docker-compose
   Nginx and Djangoserv containers linked with the folder at "/var/wwww/djangoserver"
2024-07-28 13:25:38 +02:00

7 lines
278 B
Docker

FROM nginx:latest
RUN mkdir -p /etc/nginx/ssl
RUN apt install -y openssl
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=ptme.com/UID=ptme"
COPY conf/nginx.conf /etc/nginx/nginx.conf