This commit is contained in:
BENEDEK László 2024-12-23 15:47:41 +01:00
parent ddaa081799
commit e9386f54d4
2 changed files with 52 additions and 0 deletions

35
minecraft-forge.build.yml Normal file
View File

@ -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"

View File

@ -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" ]