Use minimal Python Docker image for deployment #3
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/optimize-deploy-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use a minimal Python 3.12 slim image instead of Railpack runtime provisioning. The image includes the refresh script and page template, config, and bootstrap cache; it preserves
/app, port 8080,sh scripts/start.sh, persistent/storage, and the existing scheduled refresh command. Limit the Docker context to deployment inputs and remove obsolete railpack.json. Document the Coolify build-pack switch and add a repeatable container smoke test.Validation:
python3 -m unittest discover -s tests -v: 14 passed.docker build -t vpm-deploy-smoke .: ARM64 image built; repeat build reused all application layers.python3 tests/smoke_container.py: passed on ARM64.docker build --platform linux/amd64 -t vpm-deploy-smoke .: built; same smoke test passed under local emulation.git diff --check: passed.No Coolify settings changed. Parent coordinates switching the existing app to Dockerfile before merge, retaining
/storageand its scheduled task. Production deployment timing and live upstream refresh were not measured. Leave unmerged pending parent independent review.