Skip to content

build: switch Docker image back to node:24-alpine - #2727

Merged
rafa-stacks merged 2 commits into
mainfrom
work/api-docker-image-choice-5a0a23
Oct 23, 2026
Merged

rafa-stacks merged 2 commits into
mainfrom
work/api-docker-image-choice-5a0a23

Conversation

@rafa-stacks

@rafa-stacks rafa-stacks commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Switches the API Docker image from node:24.22.1-bookworm-slim to node:24.22.1-alpine, keeping the digest pin so Dependabot continues to track it. The glibc-only dependencies that required Debian (DuckDB, Java) have been removed, and @stacks/codec ships musl prebuilds, so the image is now ~25% smaller.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Native codec loading under musl remains unverified on the published amd64 and arm64 architectures.

No open issues 🎉

What changed in this PR

Switches the API Docker image back to Alpine to reduce image size following the removal of dependencies that required Debian.

Changes:

  • Replaces node:24-bookworm-slim with node:24-alpine.
  • Installs Git with apk --no-cache instead of apt-get, leaving the build and startup commands unchanged.
File Description
Dockerfile Uses Alpine and its package manager for the API image.

Review effort: Balanced

@rafa-stacks
rafa-stacks marked this pull request as ready for review October 23, 2026 15:04
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@rafa-stacks
rafa-stacks merged commit 1e54fa2 into main Oct 23, 2026
27 checks passed
@rafa-stacks
rafa-stacks deleted the work/api-docker-image-choice-5a0a23 branch October 23, 2026 15:15
@github-project-automation github-project-automation Bot moved this to ✅ Done in API Board Oct 23, 2026

This branch was successfully deployed

1 active deployment
Production — 037eb5ff Deployed Oct 23, 2026 by rafa-stacks via build-publish #3861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants