added label and create

This commit is contained in:
ACoolName 2024-01-20 21:30:33 +02:00
parent 1cf2f8436b
commit a24df6b692
2 changed files with 7 additions and 0 deletions

View File

@ -11,3 +11,4 @@ RUN chown -R minecraft /opt/server && chown -R root /opt/server/libraries /opt/s
USER minecraft
EXPOSE 25565
ENTRYPOINT [ "/opt/server/run.sh" ]
LABEL type=GAME

View File

@ -0,0 +1,6 @@
#!/bin/sh
if [[ -z $VERSION ]] ;
then
VERSION=1.20.2;
fi;
docker build -t "minecraft:forge-$VERSION" . --build-arg VERSION=$VERSION