From c38b19c2d39c75bb00236e4b89eef2bf2327edff Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 14 Jan 2024 22:26:34 +0100 Subject: [PATCH] Explicitly set COPY permissions for images built with an unusual umask --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 740a5f6..1cf6eda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,17 +61,17 @@ RUN mkdir -p \ /var/svc/encrypted-dns \ /var/svc/watchdog -COPY encrypted-dns.toml.in /opt/encrypted-dns/etc/ -COPY undelegated.txt /opt/encrypted-dns/etc/ +COPY --chmod=644 encrypted-dns.toml.in /opt/encrypted-dns/etc/ +COPY --chmod=644 undelegated.txt /opt/encrypted-dns/etc/ -COPY entrypoint.sh / +COPY --chmod=755 entrypoint.sh / -COPY unbound.sh /var/svc/unbound/run -COPY unbound-check.sh /var/svc/unbound/check +COPY --chmod=755 unbound.sh /var/svc/unbound/run +COPY --chmod=755 unbound-check.sh /var/svc/unbound/check -COPY encrypted-dns.sh /var/svc/encrypted-dns/run +COPY --chmod=755 encrypted-dns.sh /var/svc/encrypted-dns/run -COPY watchdog.sh /var/svc/watchdog/run +COPY --chmod=755 watchdog.sh /var/svc/watchdog/run RUN ln -sf /opt/encrypted-dns/etc/keys/encrypted-dns.toml /opt/encrypted-dns/etc/encrypted-dns.toml