From 607628a09885bda8551fedc9e94ee06f0e29f40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 22 Mar 2026 16:23:01 +0200 Subject: [PATCH] Set executable permissions for entrypoint.sh during copy Updated entrypoint.sh copy command to set executable permissions directly in the Dockerfile. This avoids entrypoint.sh file added twice to docker layers. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21b4fec32..ea77f1d33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ ARG VERSION=dev ENV VERSION=$VERSION COPY ./requirements.txt /requirements.txt -COPY ./entrypoint.sh /entrypoint.sh +COPY --chmod=755 ./entrypoint.sh /entrypoint.sh COPY ./supervisord.conf /etc/supervisord.conf COPY ./nginx.conf /etc/nginx/nginx.conf # Generate a copy of the nginx config with IPv6 support. @@ -22,7 +22,6 @@ RUN apk add --no-cache nginx shadow \ && pip install --no-cache-dir supervisor==4.3.0 \ && rm -rf /root/.cache /tmp/* \ && find /usr/local -type d -name __pycache__ -exec rm -rf {} + \ - && chmod +x /entrypoint.sh \ # create user abc for later PUID/PGID mapping && useradd -U -M -s /bin/sh abc \ # Create required nginx directories and set permissions