This commit is contained in:
2026-03-13 22:36:02 -05:00
parent d684240697
commit decc396347

View File

@@ -32,8 +32,10 @@ RUN npm run build
# Stage 3: Production Runtime # Stage 3: Production Runtime
FROM node:20-alpine FROM node:20-alpine
# Install su-exec and shadow (for usermod/groupmod) # Upgrade existing packages to fix base image vulnerabilities,
RUN apk add --no-cache su-exec shadow # then install su-exec and shadow (for usermod/groupmod)
RUN apk upgrade --no-cache && \
apk add --no-cache su-exec shadow
WORKDIR /app WORKDIR /app