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

Optimized Dockerfiles to reduce number of layers #1

Closed
wants to merge 1 commit into from
Closed

Optimized Dockerfiles to reduce number of layers #1

wants to merge 1 commit into from

Conversation

brunoborges
Copy link
Contributor

use one single ENV and one single RUN instead, to reduce number of layers. Use COPY instead of ADD for files you don't intend to extract, and as many files as you want, if they will end up being in the same directory.

@AdamBien
Copy link
Owner

I usually do not chain command due the readibility. However: sometimes it is handy to execute multiple commands at the same time (like start and configure GF :-)). I removed most of the RUN commands - I forgot to remove them. COPY vs. ADD is a good one.

@AdamBien AdamBien closed this Feb 16, 2016
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.

None yet

2 participants