Fix public directory copy in Dockerfile - use trailing slashes

This commit is contained in:
Mikael Westöö
2026-01-23 21:54:46 +01:00
parent e0ad2bc49e
commit 40f4a41203

View File

@@ -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