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

Proposal: Disable apt caching #3

Open
joshuataylor opened this issue Mar 17, 2017 · 1 comment
Open

Proposal: Disable apt caching #3

joshuataylor opened this issue Mar 17, 2017 · 1 comment

Comments

@joshuataylor
Copy link
Contributor

When running apt-get install foo, the result is cached and requires an apt-get clean to remove this cache.
However, adding

RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache

As an initial step will mean that packages are not cached with apt, and will not require an apt-get clean.

Thoughts?

@nickschuch
Copy link
Member

ah! one liner at the beginning = less lines later on? Im keen!

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