From c141e2e79633d2c54d4213c9970617f909b458ab Mon Sep 17 00:00:00 2001 From: Jaap <33700526+GewoonJaap@users.noreply.github.com> Date: Tue, 21 Oct 2025 13:12:38 +0000 Subject: [PATCH 1/2] Chmod first --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26cef64..b1ae242 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,9 @@ RUN mkdir -p .mf && \ chown -R worker:nodejs /app && \ chown -R worker:nodejs /home/worker +# Copy and setup start script with proper permissions +COPY --chmod=755 start.sh /app/start.sh + # Switch to non-root user for security USER worker @@ -50,9 +53,5 @@ EXPOSE 8787 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://localhost:8787/health || exit 1 -# Create a startup script to handle environment variables -COPY --chown=worker:nodejs start.sh /app/start.sh -RUN chmod +x /app/start.sh - -# Use the startup script as entrypoint +# Run the startup script ENTRYPOINT ["/app/start.sh"] From 3fe24f1dbf1a175dabecfc011b6aaa089b8e6ea6 Mon Sep 17 00:00:00 2001 From: Jaap <33700526+GewoonJaap@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:14:24 +0200 Subject: [PATCH 2/2] Update Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1ae242..4d15ed8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,8 +40,8 @@ RUN mkdir -p .mf && \ chown -R worker:nodejs /app && \ chown -R worker:nodejs /home/worker -# Copy and setup start script with proper permissions -COPY --chmod=755 start.sh /app/start.sh +# Copy and setup start script with proper permissions and ownership +COPY --chmod=755 --chown=worker:nodejs start.sh /app/start.sh # Switch to non-root user for security USER worker