mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
Add /etc/apt/apt.conf.d/docker-disable-pkgcache
This commit is contained in:
parent
2296dd30a4
commit
624406eb27
@ -24,6 +24,7 @@ FROM debian:${DEBIAN_VERSION} AS tubesync-base
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||||
|
APT_KEEP_ARCHIVES=1 \
|
||||||
HOME="/root" \
|
HOME="/root" \
|
||||||
LANGUAGE="en_US.UTF-8" \
|
LANGUAGE="en_US.UTF-8" \
|
||||||
LANG="en_US.UTF-8" \
|
LANG="en_US.UTF-8" \
|
||||||
@ -39,6 +40,11 @@ RUN --mount=type=cache,id=apt-lib-cache-${TARGETARCH},sharing=private,target=/va
|
|||||||
rm -f /var/cache/apt/*cache.bin ; \
|
rm -f /var/cache/apt/*cache.bin ; \
|
||||||
# Update from the network and keep cache
|
# Update from the network and keep cache
|
||||||
rm -f /etc/apt/apt.conf.d/docker-clean ; \
|
rm -f /etc/apt/apt.conf.d/docker-clean ; \
|
||||||
|
# Do not generate more /var/cache/apt/*cache.bin files
|
||||||
|
# hopefully soon, this will be included in Debian images
|
||||||
|
printf -- >| /etc/apt/apt.conf.d/docker-disable-pkgcache \
|
||||||
|
'Dir::Cache::%spkgcache "";\n' '' src ; \
|
||||||
|
chmod a+r /etc/apt/apt.conf.d/docker-disable-pkgcache ; \
|
||||||
set -x && \
|
set -x && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
# Install locales
|
# Install locales
|
||||||
|
Loading…
Reference in New Issue
Block a user