Add some more flawed changes to the Dockerfile to debug JRE_VERSION

This commit is contained in:
Salt 2022-05-17 11:22:36 -05:00
parent 2a860d745d
commit d410061076

View File

@ -9,7 +9,8 @@ ARG JRE_VERSION="openjdk8-jre"
# Build us up the basics of the Minecraft server environment # Build us up the basics of the Minecraft server environment
COPY start-server.sh /minecraft/start-server.sh COPY start-server.sh /minecraft/start-server.sh
WORKDIR /minecraft 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 &&\ 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 &&\ java -jar installer.jar --installServer &&\
echo "eula=true" > eula.txt &&\ echo "eula=true" > eula.txt &&\
@ -18,7 +19,8 @@ RUN apk add curl "${JRE_VERSION}" &&\
# Stuff them in a smaller container with fewer layers # Stuff them in a smaller container with fewer layers
FROM alpine:latest FROM alpine:latest
RUN apk add bash rsync screen "${JRE_VERSION}" RUN apk add bash rsync screen &&\
apk add "${JRE_VERSION}"
WORKDIR /minecraft WORKDIR /minecraft
COPY --from=build /minecraft . COPY --from=build /minecraft .
CMD [ "bash", "start-server.sh" ] CMD [ "bash", "start-server.sh" ]