Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Allow adding custom commands to Dockerfile's end#6

Open
Kakadu wants to merge 1 commit into
mjambon:masterfrom
Kakadu:extra-tail-commands
Open

Allow adding custom commands to Dockerfile's end#6
Kakadu wants to merge 1 commit into
mjambon:masterfrom
Kakadu:extra-tail-commands

Conversation

@Kakadu

@Kakadu Kakadu commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

Signed-off-by: Dmitrii Kosarev a.k.a. Kakadu <Kakadu@pm.me>
Comment thread extra-docker-tail
RUN find $(opam var lib) -iname '*.cmt' -exec rm -f {} \;
RUN find $(opam var lib) -iname '*.cmti' -exec rm -f {} \;
RUN find $(opam var prefix) -iname '*.exe' -exec strip {} \;
RUN du -sh ~/.opam

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good idea but it won't reduce the image size unless we do something to squash the layers. Maybe there's a tool for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants