security/dockerfile-hardening #4

Merged
jonathan merged 2 commits from security/dockerfile-hardening into master 2026-08-26 12:41:36 +02:00
Owner
No description provided.
- Upgrade base images: node:18-alpine -> node:20.20-alpine3.23 (LTS)
- Upgrade nginx: 1.25-alpine -> 1.31-alpine3.23 (latest stable)
- Pin to specific Alpine 3.23 version for reproducible builds
- Add security updates in both build and runtime stages
- Use npm ci --frozen-lockfile for deterministic dependencies
- Add --chown=nginx:nginx to COPY command for proper file permissions
- Run nginx container as non-root 'nginx' user (critical security improvement)
- Improve build structure with explicit BUILD and RUNTIME comments

Security Impact:
- Non-root user execution reduces privilege escalation risk
- Deterministic builds prevent supply chain attacks
- Alpine 3.23 includes latest security patches
- Smaller image size reduces attack surface
jonathan merged commit 8229ec60be into master 2026-08-26 12:41:36 +02:00
jonathan deleted branch security/dockerfile-hardening 2026-08-26 12:41:36 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonathan/weddin-client!4
No description provided.