feat: enhance Dockerfile and entrypoint for user permissions and environment variable handling
All checks were successful
Build and publish Docker image / build-and-push (release) Successful in 1m50s

This commit is contained in:
2025-11-16 01:16:53 +01:00
parent 0eccf479e6
commit d4d886c91f
3 changed files with 53 additions and 11 deletions

View File

@@ -9,6 +9,10 @@ RUN npm run build
# Final runtime image
FROM node:24-alpine
WORKDIR /app
# ensure su-exec present to drop privileges later
RUN apk add --no-cache ca-certificates su-exec
# copy package manifests and install deps (leverage Docker cache)
COPY backend/package*.json backend/package-lock*.json ./backend/
RUN cd backend && npm ci --silent