Updated OpenJDK to v17

master
Chris Kankiewicz 2021-12-03 16:37:24 -07:00
parent e685e68535
commit 4ab403ccef
No known key found for this signature in database
GPG Key ID: 474E915709CEB5EB
1 changed files with 1 additions and 2 deletions

View File

@ -22,10 +22,9 @@ COPY files/ops /usr/local/bin/ops
RUN chmod +x /usr/local/bin/ops
# Install dependencies, fetch Minecraft server jar file and chown files
ARG EDGE_URL=https://dl-cdn.alpinelinux.org/alpine/edge/testing
ARG JAR_URL=https://launcher.mojang.com/v1/objects/${MC_JAR_SHA1}/server.jar
RUN apk add --update ca-certificates nss tzdata wget \
&& apk add --repository ${EDGE_URL} openjdk16-jre-headless \
&& apk add openjdk17-jre-headless \
&& wget -O /opt/minecraft/minecraft_server.jar ${JAR_URL} \
&& apk del --purge wget && rm -rf /var/cache/apk/* \
&& chown -R minecraft:minecraft /etc/minecraft /opt/minecraft