Files
42_INT_13_inception/srcs/requirements/nginx/Dockerfile

18 lines
512 B
Docker

FROM debian:buster
RUN apt update && apt install -y nginx
COPY ./conf/nginx.conf /etc/nginx/
COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
# for test
COPY ./conf/index.html /data/www/
COPY ./conf/salade.jpeg /data/images/
CMD [ "nginx", "-g", "daemon off;" ]
# -g 'daemon off' :
# daemon off, to avoid the main process of nginx to quit after creating its childs, and therefore make docker exit
# https://stackoverflow.com/questions/18861300/how-to-run-nginx-within-a-docker-container-without-halting