made a makefile

+ added names of images and container in compose
+ have a functionnal nginx dockerfile
This commit is contained in:
hugo gogo
2022-08-30 11:23:38 +02:00
parent cbe0edc1ce
commit 428dc1ecee
4 changed files with 136 additions and 3 deletions

View File

@@ -12,3 +12,9 @@ services:
build:
context: ./requirements/test
dockerfile: Dockerfile
image: test
container_name: mytest
# test:
# build:
# context: ./requirements/test
# dockerfile: Dockerfile

View File

@@ -7,5 +7,5 @@ COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
COPY ./conf/index.html /data/www/
COPY ./conf/salade.jpeg /data/images/
CMD [ "nginx" ]
CMD [ "nginx", "-g", "daemon off;" ]