reduced number of layers in Traefik by combining directory and file creation and file permissions steps together. If anyone fails, the entire build should fail anyway.

This commit is contained in:
Arnav Choudhury 2020-09-05 14:20:01 +05:30
parent 7dacf4995c
commit 5f066e38da

View File

@ -1,5 +1,5 @@
FROM traefik:v2.0 FROM traefik:v2.0
RUN mkdir -p /etc/traefik/acme RUN mkdir -p /etc/traefik/acme \
RUN touch /etc/traefik/acme/acme.json && touch /etc/traefik/acme/acme.json \
RUN chmod 600 /etc/traefik/acme/acme.json && chmod 600 /etc/traefik/acme/acme.json
COPY ./compose/production/traefik/traefik.yml /etc/traefik COPY ./compose/production/traefik/traefik.yml /etc/traefik