chore: migrate Docker base image from node:22-slim to node:22-alpine#213
Closed
Valiunia wants to merge 1 commit into
Closed
chore: migrate Docker base image from node:22-slim to node:22-alpine#213Valiunia wants to merge 1 commit into
Valiunia wants to merge 1 commit into
Conversation
Switches the base image to Alpine, which uses OpenSSL and omits the gnutls library entirely, removing a class of OS-level package vulnerabilities carried by the Debian slim image. Also replaces `npm install` with `npm ci` for lockfile-exact, reproducible installs in Docker builds. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
| @@ -1,4 +1,4 @@ | |||
| FROM node:22-slim | |||
| FROM node:22-alpine | |||
There was a problem hiding this comment.
openssl 3.5.6-r0 / Dockerfile.FROM
Total vulnerabilities: 9
| Critical: 1 | High: 8 | Medium: 0 | Low: 0 |
|---|
| Vulnerability ID | Severity | CVSS | Fixed in | Status |
|---|---|---|---|---|
| CVE-2026-34182 | 9.1 | 3.5.7-r0 |
Open | |
| CVE-2026-34181 | 7.4 | 3.5.7-r0 |
Open | |
| CVE-2026-34180 | 7.5 | 3.5.7-r0 |
Open | |
| CVE-2026-34183 | 7.5 | 3.5.7-r0 |
Open | |
| CVE-2026-42764 | 7.5 | 3.5.7-r0 |
Open | |
| CVE-2026-45445 | 7.5 | 3.5.7-r0 |
Open | |
| CVE-2026-9076 | 7.5 | 3.5.7-r0 |
Open | |
| CVE-2026-7383 | 8.1 | 3.5.7-r0 |
Open | |
| CVE-2026-45447 | 8.8 | 3.5.7-r0 |
Open |
Contributor
Author
|
closing because of prisma |
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.
Summary
Migrates the Docker base image from
node:22-slim(Debian Bookworm) tonode:22-alpine. Also swapsnpm installfornpm ciin the install step.node:22-slimships several Debian system packages not needed by this server. Alpine uses OpenSSL directly and omits the gnutls library, removing a class of OS-level package vulnerabilities carried by the Debian slim base.npm ciinstalls exactly what is inpackage-lock.jsonrather than re-resolving version ranges, making Docker builds reproducible and failing loudly if the lockfile andpackage.jsondiverge.Test plan
docker build .completes without errors on the Alpine basedocker run --rm <image> sh -c "cd /app && npm test")initialize+tools/listhandshake completes; all 28 tools register correctlysearch_and_geocode_tool — forward geocode "Eiffel Tower, Paris"
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_and_geocode_tool","arguments":{"q":"Eiffel Tower, Paris"}}}Returned multiple ranked results including the Eiffel Tower in Paris, France with correct coordinates.
reverse_geocode_tool — coordinates 40.7484, -73.9857
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reverse_geocode_tool","arguments":{"longitude":-73.9857,"latitude":40.7484}}}Returned:
directions_tool — driving route SF → Oakland
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"directions_tool","arguments":{"coordinates":[{"longitude":-122.4194,"latitude":37.7749},{"longitude":-122.2712,"latitude":37.8044}],"routing_profile":"mapbox/driving"}}}Returned a route via I-80 East, duration 1522s, distance 19848m, average speed 66 kph.
Notes
Alpine uses musl libc instead of glibc. This server has no native addons compiled against glibc, so no compatibility issues are expected. If a future dependency introduces a native addon with glibc requirements, the base image choice should be revisited at that point.