Skip to content

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