SEAB-7766 Build the Docker image on Alpine and drop pip from it - #7
Merged
Merged
Conversation
denis-yuen
marked this pull request as ready for review
September 24, 2026 14:22
Member
Author
denis-yuen
requested review from
a team and
svonworl
and removed request for
a team
September 24, 2026 14:56
Member
Author
svonworl
approved these changes
Sep 24, 2026
denis-yuen
added this pull request to stack #8
September 24, 2026 18:06
denis-yuen
force-pushed
the
feature/image_reduction
branch
2 times, most recently
from
September 24, 2026 21:17
b6dcf7a to
046c39b
Compare
denis-yuen
removed this pull request from stack #8
September 24, 2026 21:20
denis-yuen
changed the base branch from
feature/trs_thin_prototype
to
feature/trs_initial_hookup
September 24, 2026 21:20
denis-yuen
added this pull request to stack #11
September 24, 2026 21:22
Switch both stages from python:3.13-slim-bookworm to python:3.13-alpine3.24, matching the Alpine 3.24 images in dockstore-deploy, and uninstall pip from the runtime image. The image shrinks from 223 MB to 139 MB (86 MB to 53 MB compressed), and Trivy goes from 251 unfixable Debian CVEs plus 3 in pip's vendored msgpack/setuptools to none. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
denis-yuen
force-pushed
the
feature/image_reduction
branch
from
September 25, 2026 13:58
046c39b to
bafb4f7
Compare
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.


Description
Switches both Dockerfile stages from
python:3.13-slim-bookwormtopython:3.13-alpine3.24, matching the Alpine 3.24 images in dockstore-deploy, and uninstalls pip from the runtime image (its vendored msgpack/setuptools were the only Python CVEs). The image drops from 223 MB to 139 MB (86 → 53 MB compressed), and Trivy goes from 251 unfixable Debian CVEs plus 3 Python ones to none. It still runs as uid 10001 with the same HEALTHCHECK.Review Instructions
Based on #5, so review only the last commit.
docker build .then check that/healthresponds and the container reports healthy, or rely on the CI smoke test. After the image is published to Quay,MCP_DOCKER_TAGin dockstore-deploy'sDockstoreStack.javaneeds updating.Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-7766
Security and Privacy
None, should reduce risks due to fewer dependencies in the deployed image
e.g. Does this change...
Please make sure that you've checked the following before submitting your pull request. Thanks!
make check🤖 Generated with Claude Code