security/dockerfile-hardening #2

Merged
jonathan merged 2 commits from security/dockerfile-hardening into update/packages-dependencies 2026-08-27 12:02:49 +02:00
Owner
No description provided.
- Upgrade base images: node:20-alpine -> node:20.20-alpine3.23 (LTS)
- Pin to specific Alpine 3.23 version for reproducible builds
- Add security updates in both build and runtime stages
- Add --chown=nobody:nobody to COPY commands for proper file permissions
- Run node process as non-root 'nobody' user (critical security improvement)
- Separate BUILD and RUNTIME stages with clear comments

Security Impact:
- Non-root user execution eliminates privilege escalation risks
- Alpine 3.23 includes latest security patches
- Pinned versions prevent unexpected dependency changes
- Smaller image size reduces attack surface compared to debian/bullseye
jonathan merged commit 2e41849042 into update/packages-dependencies 2026-08-27 12:02:49 +02:00
jonathan deleted branch security/dockerfile-hardening 2026-08-27 12:02:49 +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-server!2
No description provided.