Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RUN more efficiently #6

Closed
willcode opened this issue Mar 10, 2021 · 1 comment
Closed

Use RUN more efficiently #6

willcode opened this issue Mar 10, 2021 · 1 comment

Comments

@willcode
Copy link
Member

Something like

RUN mkdir /src
RUN do a bunch of stuff in /src
RUN rm -rf /src

does not actually recover the space, it just covers it up. Instead, do single transactions the way they're done with the apt/yum commands:

RUN mkdir /src \
&& do a bunch of stuff in /src \
&& rm -rf /src
@marcusmueller
Copy link
Member

I think we split like this now generally

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

No branches or pull requests

2 participants