1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 01:38:15 +00:00

chore: do not copy useless files into the image

Move required files but 'nginx.tmpl' into a local 'app' folder and copy the
folder content into the image.

'nginx.tmpl' should be moved as well, but this is a breaking change for
configuration with a separate 'docker-gen' container.
This commit is contained in:
Gilles Filippini 2020-06-01 07:15:00 +00:00 committed by Nicolas Duchon
parent 3257177d80
commit 5aba125fb7
No known key found for this signature in database
GPG Key ID: 91EF7BB1EECB961A
8 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ COPY --from=dockergen /usr/local/bin/docker-gen /usr/local/bin/docker-gen
COPY network_internal.conf /etc/nginx/
COPY . /app/
COPY app nginx.tmpl /app/
WORKDIR /app/
ENTRYPOINT ["/app/docker-entrypoint.sh"]

View File

@ -64,7 +64,7 @@ COPY --from=dockergen /usr/local/bin/docker-gen /usr/local/bin/docker-gen
COPY network_internal.conf /etc/nginx/
COPY . /app/
COPY app nginx.tmpl /app/
WORKDIR /app/
ENTRYPOINT ["/app/docker-entrypoint.sh"]

View File

@ -54,7 +54,7 @@ with_custom_file:
volumes:
- *docker-sock
- *nginx-certs
- ../../dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
- ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
with_skip:
container_name: dh-skip