@@ -29,8 +29,8 @@ RUN --mount=type=cache,target=/root/.npm npm run build
2929FROM docker.io/ubuntu:22.04 AS xorg-deps
3030WORKDIR /xorg
3131ENV DEBIAN_FRONTEND=noninteractive
32- RUN --mount=type=cache,target=/var/cache/apt,sharing=locked ,id=ubuntu2204-aptcache \
33- --mount=type=cache,target=/var/lib/apt,sharing=locked ,id=ubuntu2204-aptlib \
32+ RUN --mount=type=cache,target=/var/cache/apt,sharing=private ,id=ubuntu2204-aptcache \
33+ --mount=type=cache,target=/var/lib/apt,sharing=private ,id=ubuntu2204-aptlib \
3434 rm -f /etc/apt/apt.conf.d/docker-clean; \
3535 echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache; \
3636 set -eux; \
@@ -61,8 +61,8 @@ FROM docker.io/ubuntu:22.04
6161ENV DEBIAN_FRONTEND=noninteractive
6262ENV DEBIAN_PRIORITY=high
6363
64- RUN --mount=type=cache,target=/var/cache/apt,sharing=locked ,id=ubuntu2204-aptcache \
65- --mount=type=cache,target=/var/lib/apt,sharing=locked ,id=ubuntu2204-aptlib \
64+ RUN --mount=type=cache,target=/var/cache/apt,sharing=private ,id=ubuntu2204-aptcache \
65+ --mount=type=cache,target=/var/lib/apt,sharing=private ,id=ubuntu2204-aptlib \
6666 rm -f /etc/apt/apt.conf.d/docker-clean; \
6767 echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache; \
6868 apt-get update && \
144144
145145# runtime
146146ENV USERNAME=root
147- RUN --mount=type=cache,target=/var/cache/apt,sharing=locked ,id=ubuntu2204-aptcache \
148- --mount=type=cache,target=/var/lib/apt,sharing=locked ,id=ubuntu2204-aptlib \
147+ RUN --mount=type=cache,target=/var/cache/apt,sharing=private ,id=ubuntu2204-aptcache \
148+ --mount=type=cache,target=/var/lib/apt,sharing=private ,id=ubuntu2204-aptlib \
149149 set -eux; \
150150 apt-get update; \
151151 apt-get --no-install-recommends -y install \
@@ -177,11 +177,11 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=ubuntu2204-aptcac
177177 chown -R $USERNAME:$USERNAME /home/$USERNAME;
178178
179179# install chromium and sqlite3 for debugging the cookies file
180- RUN --mount=type=cache,target=/var/cache/apt,sharing=locked ,id=ubuntu2204-aptcache \
181- --mount=type=cache,target=/var/lib/apt,sharing=locked ,id=ubuntu2204-aptlib \
180+ RUN --mount=type=cache,target=/var/cache/apt,sharing=private ,id=ubuntu2204-aptcache \
181+ --mount=type=cache,target=/var/lib/apt,sharing=private ,id=ubuntu2204-aptlib \
182182 add-apt-repository -y ppa:xtradeb/apps;
183- RUN --mount=type=cache,target=/var/cache/apt,sharing=locked ,id=ubuntu2204-aptcache \
184- --mount=type=cache,target=/var/lib/apt,sharing=locked ,id=ubuntu2204-aptlib \
183+ RUN --mount=type=cache,target=/var/cache/apt,sharing=private ,id=ubuntu2204-aptcache \
184+ --mount=type=cache,target=/var/lib/apt,sharing=private ,id=ubuntu2204-aptlib \
185185 apt update -y && apt --no-install-recommends -y install chromium sqlite3;
186186
187187# setup desktop env & app
0 commit comments