mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
build.Containerfile: use cache for Debian packages
This commit is contained in:
parent
37949d2628
commit
53c5ea26b6
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,10 @@ FROM debian:bookworm-slim AS build-stage
|
||||||
|
|
||||||
# install debian packages
|
# install debian packages
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN /usr/bin/apt-get update && \
|
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
|
||||||
|
--mount=target=/var/cache/apt,type=cache,sharing=locked \
|
||||||
|
/bin/rm -f /etc/apt/apt.conf.d/docker-clean && \
|
||||||
|
/usr/bin/apt-get update && \
|
||||||
/usr/bin/apt-get --yes --no-install-recommends install disorderfs openjdk-17-jdk-headless gradle sdkmanager && \
|
/usr/bin/apt-get --yes --no-install-recommends install disorderfs openjdk-17-jdk-headless gradle sdkmanager && \
|
||||||
/bin/ln -fs /usr/share/zoneinfo/CET /etc/localtime && \
|
/bin/ln -fs /usr/share/zoneinfo/CET /etc/localtime && \
|
||||||
/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata && \
|
/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue