-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
containersPull requests that update containers codePull requests that update containers codeenhancementNew feature or requestNew feature or request
Description
Issue Description
In the multi-stage Dockerfile added in PR #342, the build stage isn't being utilized by the runtime stage.
Current Implementation
- The 'build' stage installs dependencies and copies the full context
- The 'runtime' stage reinstalls dependencies instead of copying from the build stage
- There's no 'COPY --from=build' instruction to use artifacts from the build stage
Recommendation
Either:
- Remove the unused build stage if not needed, or
- Optimize the Dockerfile by using the build stage to produce artifacts (e.g., wheels or a virtualenv) that are then copied into the runtime image
Reference
This issue was identified in a code review: #342 (comment)
Metadata
Metadata
Assignees
Labels
containersPull requests that update containers codePull requests that update containers codeenhancementNew feature or requestNew feature or request