Explorar el Código

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.
Gilles Filippini hace 5 años
padre
commit
5aba125fb7

+ 1 - 1
Dockerfile

@@ -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"]

+ 1 - 1
Dockerfile.alpine

@@ -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"]

+ 0 - 0
Procfile → app/Procfile


+ 0 - 0
dhparam/ffdhe2048.pem → app/dhparam/ffdhe2048.pem


+ 0 - 0
dhparam/ffdhe3072.pem → app/dhparam/ffdhe3072.pem


+ 0 - 0
dhparam/ffdhe4096.pem → app/dhparam/ffdhe4096.pem


+ 0 - 0
docker-entrypoint.sh → app/docker-entrypoint.sh


+ 1 - 1
test/test_ssl/test_dhparam.yml

@@ -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