mirror of
https://github.com/moby/buildkit.git
synced 2026-08-12 12:15:16 +00:00
Update apt cache example (fix warning)
Fixes warning from `apt`: > WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Signed-off-by: Rodolfo Carvalho <rhcarvalho@gmail.com>
This commit is contained in:
@@ -880,7 +880,7 @@ FROM ubuntu
|
||||
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt update && apt-get --no-install-recommends install -y gcc
|
||||
apt-get update && apt-get --no-install-recommends install -y gcc
|
||||
```
|
||||
|
||||
Apt needs exclusive access to its data, so the caches use the option
|
||||
|
||||
Reference in New Issue
Block a user