Repository navigation
build(docker): reduce runtime image size - #168
Merged
Merged
Conversation
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.
Background
PanWatch 0.17.0 images download approximately 459–465 MiB per architecture. Build tools, the graphics driver stack, and precompiled Python bytecode add avoidable weight to deployments.
Changes
Validation
linux/arm64andlinux/amd64images. Compressed layers measured 291.8 MiB and 294.7 MiB respectively, approximately 36.5% smaller than 0.17.0.python -m pytest tests/ --ignore=tests/test_makefile_windows.py -x -q— 890 passed, 1 skipped;python -m pytest packages/marketdata/tests -q— 188 passed; local agent package suites — 54 passed..venv/bin/python -m pytest tests/test_makefile_windows.py -q— 4 passed, 2 platform skips.docker run --rm -v "$PWD:/checks:ro" panwatch:docker-optimized python /checks/scripts/docker_smoke.py— all ARM64 checks passed. AMD64 package imports, PDF exports, and separate HTTP startup checks passed under emulation.python -m pytest tests/ -x -qandpython -m pytest packages/marketdata/tests -q, then successfully publishedsunxiao0721/panwatch:0.17.0-docker-opt-968fd04for both architectures.git diff --check— passed.Boundaries and risks
Full CJK fonts and runtime features remain included. Chromium continues to download into the data volume; startup now invokes the cached installer to detect missing or stale browser revisions. Most Python dependencies retain their existing lower-bound version constraints.
Follow-up
None.