build.Containerfile: reference build to use OpenJDK 17

This commit is contained in:
Andreas Schildbach 2024-06-12 18:17:18 +02:00
parent b0ea770ba3
commit df63f54ab1

View file

@ -14,12 +14,12 @@
# directory. Use `apksigner` to sign before installing via `adb install`.
#
FROM debian:bullseye-backports AS build-stage
FROM debian:bookworm-slim AS build-stage
# install debian packages
ENV DEBIAN_FRONTEND noninteractive
RUN /usr/bin/apt-get update && \
/usr/bin/apt-get --yes install disorderfs openjdk-11-jdk-headless gradle sdkmanager && \
/usr/bin/apt-get --yes install disorderfs openjdk-17-jdk-headless gradle sdkmanager && \
/bin/ln -fs /usr/share/zoneinfo/CET /etc/localtime && \
/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata && \
/bin/ln -s /proc/self/mounts /etc/mtab && \