Skip to content
Closed
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
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,15 @@ COPY . .
RUN yarn build-prod

# Stage 4: Production
FROM nginx:mainline-alpine-slim AS production
FROM nginx:1.29.1-bookworm AS production

# Install security updates
RUN apt-get update \
&& apt-get install -y \
debsecan \
&& apt-get install --no-install-recommends -y \
$(debsecan --suite bookworm --format packages --only-fixed) \
&& rm -rf /var/lib/apt/lists/*

# Copy nginx configuration and build application inside the final container
COPY --from=builder /app/docker/nginx.conf /etc/nginx/conf.d/default.conf
Expand Down