docker
This commit is contained in:
@@ -32,8 +32,10 @@ RUN npm run build
|
||||
# Stage 3: Production Runtime
|
||||
FROM node:20-alpine
|
||||
|
||||
# Install su-exec and shadow (for usermod/groupmod)
|
||||
RUN apk add --no-cache su-exec shadow
|
||||
# Upgrade existing packages to fix base image vulnerabilities,
|
||||
# then install su-exec and shadow (for usermod/groupmod)
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache su-exec shadow
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user