From de09ecde162451afa62ad448838aad93f20a3208 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 7 Sep 2023 11:48:30 -0400 Subject: [PATCH] Don't share the apt cache --- tools/docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index cbb170779fe6c..86fa17e1f13d9 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -13,7 +13,7 @@ ENV LC_ALL en_US.UTF-8 WORKDIR /tmp # Install basic packages, including Apache. -RUN --mount=type=cache,target=/var/lib/apt/lists/ \ +RUN --mount=type=cache,target=/var/lib/apt/lists/,sharing=private \ export DEBIAN_FRONTEND=noninteractive \ && apt-get update \ && apt-get install -y curl gpg language-pack-en-base software-properties-common \ @@ -41,7 +41,7 @@ RUN --mount=type=cache,target=/var/lib/apt/lists/ \ RUN a2enmod rewrite # Install requested version of PHP. -RUN --mount=type=cache,target=/var/lib/apt/lists/ \ +RUN --mount=type=cache,target=/var/lib/apt/lists/,sharing=private \ : "${PHP_VERSION:?Build argument PHP_VERSION needs to be set and non-empty.}" \ && export DEBIAN_FRONTEND=noninteractive \ && apt-get install -y \ @@ -77,7 +77,7 @@ RUN \ && rm -rf ~/.composer # Install requested version of Node. -RUN --mount=type=cache,target=/var/lib/apt/lists/ \ +RUN --mount=type=cache,target=/var/lib/apt/lists/,sharing=private \ : "${NODE_VERSION:?Build argument NODE_VERSION needs to be set and non-empty.}" \ && export DEBIAN_FRONTEND=noninteractive \ && N=${NODE_VERSION%%.*} \