From c4aa10504219f7bfcb019cfc136643ecfa5da5f6 Mon Sep 17 00:00:00 2001 From: Brett Randall Date: Mon, 13 Dec 2021 01:10:18 +1100 Subject: [PATCH] Added --chmod to all COPY instructions in Dockerfile (#1184) --- Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a57873a2..b391f01f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN apt-get update \ RUN addgroup --gid 1000 minecraft \ && adduser --system --shell /bin/false --uid 1000 --ingroup minecraft --home /data minecraft -COPY files/sudoers* /etc/sudoers.d +COPY --chmod=644 files/sudoers* /etc/sudoers.d EXPOSE 25565 25575 @@ -78,15 +78,14 @@ ENV UID=1000 GID=1000 \ ENABLE_AUTOPAUSE=false AUTOPAUSE_TIMEOUT_EST=3600 AUTOPAUSE_TIMEOUT_KN=120 AUTOPAUSE_TIMEOUT_INIT=600 \ AUTOPAUSE_PERIOD=10 AUTOPAUSE_KNOCK_INTERFACE=eth0 -COPY scripts/start* / -COPY bin/ /usr/local/bin/ -COPY bin/mc-health /health.sh -COPY files/server.properties /tmp/server.properties -COPY files/log4j2.xml /tmp/log4j2.xml -COPY files/autopause /autopause +COPY --chmod=755 scripts/start* / +COPY --chmod=755 bin/ /usr/local/bin/ +COPY --chmod=755 bin/mc-health /health.sh +COPY --chmod=644 files/server.properties /tmp/server.properties +COPY --chmod=644 files/log4j2.xml /tmp/log4j2.xml +COPY --chmod=755 files/autopause /autopause -RUN dos2unix /start* && chmod +x /start* \ - && dos2unix /autopause/* && chmod +x /autopause/*.sh +RUN dos2unix /start* /autopause/* ENTRYPOINT [ "/start" ] HEALTHCHECK --start-period=1m CMD mc-health