Add some more flawed changes to the Dockerfile to debug JRE_VERSION
This commit is contained in:
parent
2a860d745d
commit
d410061076
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user