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

Avoid caching problems #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Avoid caching problems #2

wants to merge 1 commit into from

Conversation

ooxi
Copy link

@ooxi ooxi commented Jan 11, 2017

apt-get update and apt-get install have to be executed at once, otherwise the update will be cached separately from the install which might cause caching issues (trying to install a package not available any more because update information is too old).

See docker best practices.

`apt-get update` and `apt-get install` have to be executed at once, otherwise the update will be cached separately from the install which might cause caching issues (trying to install a package not available any more because update information is too old).

See [docker best practices](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/apt-get)
Copy link

@joelfogue joelfogue left a comment

Choose a reason for hiding this comment

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

I agree this is the correct way of doing it

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.

3 participants