Moved all config to .env file; updated README
This commit is contained in:
parent
3e0e544ec7
commit
0ae84c0019
10 changed files with 79 additions and 19 deletions
|
|
@ -11,11 +11,13 @@ RUN mkdir worlds config
|
|||
# Download installer jar
|
||||
ADD "https://files.minecraftforge.net/maven/net/minecraftforge/forge/${MC_VERSION}-${FORGE_VERSION}/forge-${MC_VERSION}-${FORGE_VERSION}-installer.jar" installer.jar
|
||||
|
||||
# Install forge, rename forge jar & remove installer
|
||||
# Install forge & remove installer
|
||||
RUN java -jar installer.jar server --installServer && \
|
||||
mv forge-${MC_VERSION}-${FORGE_VERSION}.jar forge.jar && \
|
||||
rm installer.jar installer.jar.log
|
||||
|
||||
# Forge doesn't use one single name, so this is needed to know the name of the executable
|
||||
ENV FORGE_JAR="forge-${MC_VERSION}-${FORGE_VERSION}.jar"
|
||||
|
||||
# Store the cache in an anonymous volume, which means it won't get stored in the other volumes
|
||||
VOLUME /mc/config/cache
|
||||
|
||||
|
|
@ -50,6 +52,6 @@ java \
|
|||
-XX:MaxTenuringThreshold=1 \
|
||||
-Dusing.aikars.flags=https://mcflags.emc.gs \
|
||||
-Daikars.new.flags=true \
|
||||
-jar forge.jar \
|
||||
-jar "$FORGE_JAR" \
|
||||
--universe /mc/worlds \
|
||||
--nogui
|
||||
|
|
|
|||
Reference in a new issue