Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:24-alpine AS build
FROM node:24-slim as build
# Set build arguments with defaults
ARG NODE_ENV=production
ARG NPM_INSTALL_FLAGS=
Expand All @@ -15,12 +15,10 @@ RUN npm ci $NPM_INSTALL_FLAGS
# Copy website files
COPY website/ ./

FROM node:24-alpine

RUN apk add --no-cache ca-certificates && update-ca-certificates
FROM node:24-slim

# Create a non-root user and group
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser

# Copy layer wfrom build image
COPY --chown=appuser:appgroup --from=build /app /app
Expand Down
Loading