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

Speed up Docker build #17

Closed
kennethlimcp opened this issue Jun 6, 2015 · 4 comments
Closed

Speed up Docker build #17

kennethlimcp opened this issue Jun 6, 2015 · 4 comments

Comments

@kennethlimcp
Copy link

Would it be faster if we split the installation of Build deps into a RUN and another for the curl of lates Ghost version?

https://github.com/docker-library/ghost/blob/master/Dockerfile#L33

The current setup is ok but builds a little slowly for mine on an armhf device. Just though it might be worth discussing/bringing this up as an improvement!

@tianon
Copy link
Member

tianon commented Jun 6, 2015 via email

@kennethlimcp
Copy link
Author

@tianon thanks! Something new for me :) I would need to go learn more about Docker but that's a useful tool that i'm using more frequently !

@kennethlimcp
Copy link
Author

@tianon since we are on this topic (not the best place to ask), how does more commands lead to a larger image? Anywhere i can read more about this?

@tianon
Copy link
Member

tianon commented Jun 19, 2015

https://docs.docker.com/docker/introduction/understanding-docker/#how-does-a-docker-image-work talks about it a bit -- basically, each command creates a new layer, and each of these layers is isolated from the previous layers (and thus removing something in a later layer cannot affect the size of the previous layer, since the image layers themselves are stacked and immutable).

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