forked from evryfs/base-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
10 lines (10 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
10 lines (10 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
FROM quay.io/evryfs/base-ubuntu:jammy-20231128
LABEL maintainer "David J. M. Karlsen <david@davidkarlsen.com>"
ARG JDK_VERSION=19.0.1+10
ARG DOWNLOAD_URL=https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.1%2B10/OpenJDK19U-jdk_x64_linux_hotspot_19.0.1_10.tar.gz
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mkdir -p /usr/lib/jvm && \
curl -Ls ${DOWNLOAD_URL} | tar xzv -C /usr/lib/jvm && \
sh -c 'for bin in /usr/lib/jvm/jdk-${JDK_VERSION}/bin/*; do update-alternatives --install /usr/bin/$(basename $bin) $(basename $bin) $bin 100 ;done' && \
sh -c 'for bin in /usr/lib/jvm/jdk-${JDK_VERSION}/bin/*; do update-alternatives --set $(basename $bin) $bin; done' && \
java -Xshare:dump