Skip to content

Use COPY --chmod to reduce Docker image layer count.#155

Closed
brycelelbach wants to merge 1 commit intomainfrom
optimize-dockerfile-copy-chmod
Closed

Use COPY --chmod to reduce Docker image layer count.#155
brycelelbach wants to merge 1 commit intomainfrom
optimize-dockerfile-copy-chmod

Conversation

@brycelelbach
Copy link
Collaborator

Summary

  • Replace separate COPY + RUN chmod -R a+rwX steps with a single COPY --chmod=0777 in all tutorial dockerfiles and the stdpar docker-recipe, eliminating a redundant layer that duplicated the entire repo's file data.

Replace separate COPY + RUN chmod steps with a single COPY --chmod=0777
to avoid duplicating file data across two layers.
@brycelelbach brycelelbach deleted the optimize-dockerfile-copy-chmod branch March 11, 2026 16:23
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