This commit is contained in:
azw
2024-08-19 11:42:04 +08:00
commit d36294cb86
132 changed files with 4417 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM openjdk:22
RUN mkdir /app
WORKDIR /app
RUN curl -o installer.jar -OJ https://maven.fabricmc.net/net/fabricmc/fabric-installer/1.0.1/fabric-installer-1.0.1.jar
RUN java -jar installer.jar server -mcversion 1.20.1 -downloadMinecraft
RUN rm installer.jar \
&& mv server.jar vanilla.jar \
&& mv fabric-server-launch.jar server.jar \
&& echo "serverJar=vanilla.jar" > fabric-server-launcher.properties \
&& echo "eula=true" > eula.txt
COPY server.properties server.properties
COPY package/overrides/mods /app/mods
COPY ops.json ops.json
RUN rm /app/mods/*AllMusic_Client*.jar
RUN rm /app/mods/chattools*.jar
VOLUME [ "/app/world" ]
ENTRYPOINT [ "java", "-Xms4G", "-Xmx32G", "-jar", "server.jar" ]