Skip to content

Commit 75ae8e3

Browse files
mount tmpfs for apt caches
1 parent 11449db commit 75ae8e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

image/base/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ RUN echo 2.0.`date +%Y%m%d` > /VERSION
6969
RUN echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE}-backports main" > "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-backports.list"
7070

7171
RUN --mount=type=tmpfs,target=/var/log \
72+
--mount=type=tmpfs,target=/var/cache/apt \
73+
--mount=type=tmpfs,target=/var/lib/apt \
7274
echo "debconf debconf/frontend select Teletype" | debconf-set-selections; \
7375
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales \
7476
ca-certificates rsync \

0 commit comments

Comments
 (0)