Repository navigation
fix(docker): install compilers in the builder stage so arm64 builds - #16
Open
adamsrnmsu wants to merge 1 commit into
Open
adamsrnmsu wants to merge 1 commit into
adamsrnmsu wants to merge 1 commit into
Conversation
hdbscan and libsass publish no linux/arm64 wheels for Python 3.12, so pip builds them from source on arm64 hosts. The python-builder stage had no compiler and the build failed with "No such file or directory: 'gcc'". Install build-essential in the builder stage only. The runtime stage copies just the venv, so the final image gains no toolchain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
7 of 11 tasks
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
The parseus image doesn't build on arm64 hosts (Apple Silicon, Graviton, arm64 phenix ranges).
hdbscanandlibsasspublish no linux/arm64 wheels for Python 3.12, so pip compiles them from source. Thepython-builderstage has no compiler, so the build fails:This adds
build-essentialto the builder stage only. The runtime stage copies just/opt/venv, so the final image gets no toolchain.Testing
docker build --platform linux/arm64 .on an arm64 host: fails onmain, succeeds with this change.python -c 'import hdbscan, sass'succeeds and reportsaarch64.make stage) loaded and installed withmanage_parseus.py install --method bundleon an arm64 Kali VM with no network:Install complete, elasticsearch and redis healthy,https://localhost/returns 200.Found while making the kali-purple phenix image (sandialabs/sceptre-phenix-images#50) build on arm64.
🤖 Generated with Claude Code