docker
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user