Minor Dockerfile optimizations

master
Chris Kankiewicz 2021-05-19 08:30:31 -07:00
parent 06a977cefe
commit 3c8112134a
No known key found for this signature in database
GPG Key ID: 474E915709CEB5EB
1 changed files with 1 additions and 3 deletions

View File

@ -5,9 +5,6 @@ LABEL maintainer='Chris Kankiewicz <Chris@ChrisKankiewicz.com>'
ARG MC_VERSION=1.16.4
ARG MC_JAR_SHA1=35139deedbd5182953cf1caa23835da59ca3d7cd
# Set jar file URL
ARG JAR_URL=https://launcher.mojang.com/v1/objects/${MC_JAR_SHA1}/server.jar
# Set default JVM options
ENV _JAVA_OPTIONS '-Xms256M -Xmx1024M'
@ -25,6 +22,7 @@ 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 JAR_URL=https://launcher.mojang.com/v1/objects/${MC_JAR_SHA1}/server.jar
RUN apk add --update ca-certificates nss openjdk8-jre-base tzdata wget \
&& wget -O /opt/minecraft/minecraft_server.jar ${JAR_URL} \
&& apk del --purge wget && rm -rf /var/cache/apk/* \