Skip to content

refactor(dockerfile): remove unnecessary build deps and copy steps#540

Merged
jackseceng merged 2 commits into
mainfrom
docker-cleanup
May 12, 2026
Merged

refactor(dockerfile): remove unnecessary build deps and copy steps#540
jackseceng merged 2 commits into
mainfrom
docker-cleanup

Conversation

@jackseceng
Copy link
Copy Markdown
Collaborator

  • Remove cmake and coreutils from apk deps; neither is required by any package in requirements.txt
  • Replace COPY . . with targeted COPY of requirements.txt and app/ to avoid pulling the entire repo into the build context
  • Remove /tmp setup from build stage (mkdir/chmod/chown) and the corresponding COPY --from=build-env /tmp /tmp in the runtime stage; /tmp is provided at runtime via the compose tmpfs mount

- Remove cmake and coreutils from apk deps; neither is required
  by any package in requirements.txt
- Replace COPY . . with targeted COPY of requirements.txt and app/
  to avoid pulling the entire repo into the build context
- Remove /tmp setup from build stage (mkdir/chmod/chown) and the
  corresponding COPY --from=build-env /tmp /tmp in the runtime stage;
  /tmp is provided at runtime via the compose tmpfs mount
@jackseceng jackseceng marked this pull request as ready for review May 12, 2026 16:51
@jackseceng jackseceng merged commit 7c98f43 into main May 12, 2026
28 checks passed
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.

1 participant