images/minecraft-forge/Dockerfile

17 lines
491 B
Docker
Raw Normal View History

2024-12-23 14:47:41 +00:00
# registry.tek.govt.hu/dowerx/minecraft-forge
FROM registry.tek.govt.hu/dowerx/java-base:21-jre
ARG MINECRAFT_VERSION="1.20.1"
ARG FORGE_VERSION="47.3.0"
ADD https://maven.minecraftforge.net/net/minecraftforge/forge/${MINECRAFT_VERSION}-${FORGE_VERSION}/forge-${MINECRAFT_VERSION}-${FORGE_VERSION}-installer.jar /forge-installer.jar
RUN java -jar /forge-installer.jar --installServer /minecraft
WORKDIR /minecraft
EXPOSE 25565
EXPOSE 25575
ENTRYPOINT [ "/minecraft/run.sh", "-nogui" ]