Skip to content

Conversation

@javidahmed64592
Copy link
Owner

This pull request updates the build and deployment process for the Python Template Server by introducing a multi-stage Docker build and improving dependency management. The changes streamline the image creation, optimize dependency installation, and enhance configuration for direct references.

Docker build and dependency management improvements:

  • Added a multi-stage build to the Dockerfile using a builder stage to build the Python wheel with uv, and a runtime stage to install the built wheel, resulting in a more efficient and secure image.
  • Replaced installing dependencies from a remote Git repository with installing the locally built wheel in the runtime stage, reducing build-time dependencies and improving reproducibility.

Configuration enhancements:

  • Enabled direct references for dependencies in pyproject.toml by adding the [tool.hatch.metadata] allow-direct-references = true section, supporting more flexible dependency management.

@javidahmed64592 javidahmed64592 merged commit 5ffc79b into main Dec 2, 2025
7 checks passed
@javidahmed64592 javidahmed64592 deleted the reintroduce-wheel branch December 2, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants