Skip to content

fix(dockerfile): clean apt cache folders #175

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

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

Conversation

alvarogonzalez-packlink
Copy link

@alvarogonzalez-packlink alvarogonzalez-packlink commented Mar 25, 2025

Description

When building a Dockerfile we aren't running bash, so it doesn't do brace expansion, so this kind of things don't work:

rm -rf /var/lib/{apt,dpkg,cache,log}/

I've substituted it by the individual commands except for dpkg, as it would break the use of apt in next executions, and log, that seems to be empty.

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.

1 participant