diff --git a/minecraft-forge.build.yml b/minecraft-forge.build.yml new file mode 100644 index 0000000..ba2a4cf --- /dev/null +++ b/minecraft-forge.build.yml @@ -0,0 +1,35 @@ +registries: + - registry.tek.govt.hu +repos: + - name: minecraft-forge + library: dowerx + path: minecraft-forge + args: + - key: MINECRAFT_VERSION + value: "${MINECRAFT_VERSION}" + - key: FORGE_VERSION + value: "${FORGE_VERSION}" + tags: + - name: latest + tags: + - amd64 + - arm64 + - name: "${MINECRAFT_VERSION}" + tags: + - "${MINECRAFT_VERSION}-amd64" + - "${MINECRAFT_VERSION}-arm64" + - name: "${MINECRAFT_VERSION}-${FORGE_VERSION}" + tags: + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-amd64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-arm64" + builds: + - arch: amd64 + tags: + - amd64 + - "${MINECRAFT_VERSION}-amd64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-amd64" + - arch: arm64 + tags: + - arm64 + - "${MINECRAFT_VERSION}-arm64" + - "${MINECRAFT_VERSION}-${FORGE_VERSION}-arm64" \ No newline at end of file diff --git a/minecraft-forge/Dockerfile b/minecraft-forge/Dockerfile new file mode 100644 index 0000000..e2f85d2 --- /dev/null +++ b/minecraft-forge/Dockerfile @@ -0,0 +1,17 @@ +# 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" ] \ No newline at end of file