Skip to content

Remove --update and replace with --no-cache for apk in Dockerfile#913

Merged
evilsocket merged 1 commit intobettercap:masterfrom
PeterDaveHello:ImproveDockerfile
Nov 29, 2021
Merged

Remove --update and replace with --no-cache for apk in Dockerfile#913
evilsocket merged 1 commit intobettercap:masterfrom
PeterDaveHello:ImproveDockerfile

Conversation

@PeterDaveHello
Copy link
Contributor

There is no need to use --update with --no-cache, only --no-cache
should be used when building a Docker image, as using --no-cache will
fetch the index every time and leave no local cache, so the index will
always be the latest and without temporary files remains in the image.

This change will also make the usage more consistent in the Dockerfile.

There is no need to use `--update` with `--no-cache`, only `--no-cache`
should be used when building a Docker image, as using `--no-cache` will
fetch the index every time and leave no local cache, so the index will
always be the latest and without temporary files remains in the image.
@evilsocket evilsocket merged commit ed4239f into bettercap:master Nov 29, 2021
@PeterDaveHello PeterDaveHello deleted the ImproveDockerfile branch November 29, 2021 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants