refactor: remove non-root user setup from Dockerfile
Deploy to NAS / deploy (push) Failing after 1m3s
Deploy to NAS / deploy (push) Failing after 1m3s
This commit is contained in:
@@ -13,14 +13,6 @@ RUN npm ci --only=production
|
|||||||
# Copy application files
|
# Copy application files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Create a non-root user to run the application
|
|
||||||
RUN addgroup -g 1001 -S nodejs && \
|
|
||||||
adduser -S nodejs -u 1001 && \
|
|
||||||
chown -R nodejs:nodejs /app/logs
|
|
||||||
|
|
||||||
# Switch to non-root user
|
|
||||||
USER nodejs
|
|
||||||
|
|
||||||
# Expose port (if needed for health checks)
|
# Expose port (if needed for health checks)
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user