From 40f4a41203c3c3ea1846066518064652a056a48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20West=C3=B6=C3=B6?= Date: Fri, 23 Jan 2026 21:54:46 +0100 Subject: [PATCH] Fix public directory copy in Dockerfile - use trailing slashes --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 070d0b3..03bc3a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,13 +10,17 @@ RUN npm install --production # Copy application code COPY server.js ./ -COPY public ./public COPY migrations ./migrations -# Create non-root user +# Copy public directory explicitly +COPY public/ ./public/ + +# Create non-root user and fix permissions RUN addgroup -g 1001 -S nodejs && \ adduser -S nodejs -u 1001 && \ - chown -R nodejs:nodejs /app + chown -R nodejs:nodejs /app && \ + ls -la /app && \ + ls -la /app/public USER nodejs