From d410061076adb776d31909dbb3e21e9e4ec3cf97 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 17 May 2022 11:22:36 -0500 Subject: [PATCH] Add some more flawed changes to the Dockerfile to debug JRE_VERSION --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c082f4d..ec82848 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ ARG JRE_VERSION="openjdk8-jre" # Build us up the basics of the Minecraft server environment COPY start-server.sh /minecraft/start-server.sh WORKDIR /minecraft -RUN apk add curl "${JRE_VERSION}" &&\ +RUN apk add curl &&\ + apk add "${JRE_VERSION}" &&\ curl -L "https://files.minecraftforge.net/maven/net/minecraftforge/forge/${MINECRAFT_VERSION}-${FORGE_VERSION}/forge-${MINECRAFT_VERSION}-${FORGE_VERSION}-installer.jar" -o installer.jar &&\ java -jar installer.jar --installServer &&\ echo "eula=true" > eula.txt &&\ @@ -18,7 +19,8 @@ RUN apk add curl "${JRE_VERSION}" &&\ # Stuff them in a smaller container with fewer layers FROM alpine:latest -RUN apk add bash rsync screen "${JRE_VERSION}" +RUN apk add bash rsync screen &&\ + apk add "${JRE_VERSION}" WORKDIR /minecraft COPY --from=build /minecraft . CMD [ "bash", "start-server.sh" ]