-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
23 lines (19 loc) · 987 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2022 Jqshuv (Joshua Schmitt)
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
FROM ghcr.io/upackages/ubuntu:latest
LABEL maintainer="%%MAINTAINER%%"
LABEL org.opencontainers.image.source "%%REPOSITORY%%"
LABEL org.opencontainers.image.description The Java %%JAVA_VERSION%% version by Unately
RUN apt-get -qq update && \
apt-get -qq -y --no-install-recommends install gnupg software-properties-common && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9 && \
apt-add-repository "deb https://repos.azul.com/azure-only/zulu/apt stable main" && \
apt-get -qq update && \
apt-get -qq -y dist-upgrade && \
apt-get -qq -y --no-install-recommends install zulu-%%JAVA_VERSION%%-azure-jre-headless && \
apt-get -qq -y purge gnupg software-properties-common && \
apt -y autoremove && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME=/usr/lib/jvm/zulu%%JAVA_VERSION%%-ca-amd64