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

Open
willcode opened this issue Mar 10, 2021 · 0 comments
Open

Use RUN more efficiently #6

willcode opened this issue Mar 10, 2021 · 0 comments

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
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

1 participant