Skip to content

Commit c38b19c

Browse files
committed
Explicitly set COPY permissions for images built with an unusual umask
1 parent 6c6a248 commit c38b19c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ RUN mkdir -p \
6161
/var/svc/encrypted-dns \
6262
/var/svc/watchdog
6363

64-
COPY encrypted-dns.toml.in /opt/encrypted-dns/etc/
65-
COPY undelegated.txt /opt/encrypted-dns/etc/
64+
COPY --chmod=644 encrypted-dns.toml.in /opt/encrypted-dns/etc/
65+
COPY --chmod=644 undelegated.txt /opt/encrypted-dns/etc/
6666

67-
COPY entrypoint.sh /
67+
COPY --chmod=755 entrypoint.sh /
6868

69-
COPY unbound.sh /var/svc/unbound/run
70-
COPY unbound-check.sh /var/svc/unbound/check
69+
COPY --chmod=755 unbound.sh /var/svc/unbound/run
70+
COPY --chmod=755 unbound-check.sh /var/svc/unbound/check
7171

72-
COPY encrypted-dns.sh /var/svc/encrypted-dns/run
72+
COPY --chmod=755 encrypted-dns.sh /var/svc/encrypted-dns/run
7373

74-
COPY watchdog.sh /var/svc/watchdog/run
74+
COPY --chmod=755 watchdog.sh /var/svc/watchdog/run
7575

7676
RUN ln -sf /opt/encrypted-dns/etc/keys/encrypted-dns.toml /opt/encrypted-dns/etc/encrypted-dns.toml
7777

0 commit comments

Comments
 (0)