Updated OpenJDk to v16

master
Chris Kankiewicz 2021-06-09 09:26:26 -07:00
parent da91ff6ffd
commit 6c0b09f337
No known key found for this signature in database
GPG Key ID: 474E915709CEB5EB
1 changed files with 3 additions and 1 deletions

View File

@ -22,8 +22,10 @@ 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 openjdk11-jre-headless tzdata wget \
RUN apk add --update ca-certificates nss tzdata wget \
&& apk add --repository ${EDGE_URL} openjdk16-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