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