Repository navigation
fix(docker): drop Alpine yarn from runtime image - #2103
Merged
Merged
Conversation
Alpine's yarn package depends on Alpine's nodejs package, which put an outdated Node.js 24 into the runtime image next to the official Node.js 26 and triggered security scanner warnings. Production dependencies are now installed in the build stage and copied into the runtime image. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P2AmTW9mCkZb9fwBj2GAtV
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 14, 2026
## [1.14.38](v1.14.37...v1.14.38) (2026-11-14) ### Bug Fixes * **docker:** drop Alpine yarn from runtime image ([#2103](#2103)) ([9e5ecea](9e5ecea)) ### Continuous Integration * **deps:** bump ffflorian/actions from 1.30.13 to 1.30.14 ([#2100](#2100)) ([9ce8477](9ce8477)) ### Miscellaneous Chores * **deps-dev:** bump @ffflorian/oxlint-config from 1.0.15 to 1.0.16 ([#2101](#2101)) ([24eaa48](24eaa48)) * **deps-dev:** bump vite from 8.3.5 to 8.3.6 ([#2102](#2102)) [ci skip] ([f37c584](f37c584)) * Update Docker dependencies daily [ci skip] ([41825a6](41825a6))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
apk add yarnin the runtime stage pulls in Alpine's ownnodejspackage (currently Node.js 24) next to the official Node.js 26 from the base image. Security scanners (e.g. Coolify) then report the Node.js 24 CVEs for the image.Changes
dist/index.jsexists after the build, then prune to production dependencies withyarn workspaces focus --all --production.curlvia apk (noyarn), copydist,node_modulesandpackage.jsonfrom the build stage (no secondyarn install), and start withnode dist/index.js(same command asstart:prod).Testing
docker buildruns in CI.Same fix as ffflorian/familienpraxis-bruehl.de#70.
Generated by Claude Code