Skip to content

Commit 8468f9e

Browse files
committed
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. As such, this move is delayed to the next ajor release.
1 parent 481c5a2 commit 8468f9e

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ENV DOCKER_GEN_VERSION=${DOCKER_GEN_VERSION}
6464

6565
COPY network_internal.conf /etc/nginx/
6666

67-
COPY . /app/
67+
COPY app nginx.tmpl /app/
6868
WORKDIR /app/
6969

7070
ENV DOCKER_HOST unix:///tmp/docker.sock

Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ENV DOCKER_GEN_VERSION=${DOCKER_GEN_VERSION}
6161

6262
COPY network_internal.conf /etc/nginx/
6363

64-
COPY . /app/
64+
COPY app nginx.tmpl /app/
6565
WORKDIR /app/
6666

6767
ENV DOCKER_HOST unix:///tmp/docker.sock

Procfile renamed to app/Procfile

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)