added forge 1.20.2

This commit is contained in:
ACoolName 2024-01-20 21:28:36 +02:00
parent e5d3d4e98c
commit 1cf2f8436b
4 changed files with 20 additions and 0 deletions

1
minecraft/forge/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.jar filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,13 @@
FROM alpine
ARG VERSION=1.20.2
RUN apk update && apk add openjdk17 wget
RUN mkdir -p /opt/server
WORKDIR /opt/server
COPY forge-${VERSION}-installer.jar /opt
RUN java -jar /opt/forge-${VERSION}-installer.jar --installServer .
COPY eula.txt .
RUN adduser -S minecraft minecraft
RUN chown -R minecraft /opt/server && chown -R root /opt/server/libraries /opt/server/run.sh /opt/server/user_jvm_args.txt
USER minecraft
EXPOSE 25565
ENTRYPOINT [ "/opt/server/run.sh" ]

3
minecraft/forge/eula.txt Normal file
View File

@ -0,0 +1,3 @@
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).
#Sat Jan 20 19:14:37 GMT 2024
eula=true

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:921e28fd1ec4745f706c6f6a30de00338b9e6bbb612dd36c4e566605a4775af2
size 5400758