add minecraft service

This commit is contained in:
Matthew Tran
2023-09-06 11:12:08 +00:00
parent 1685a02f90
commit 2272e874f5
9 changed files with 112 additions and 22 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM ubuntu:22.04
WORKDIR /root
RUN apt-get update && apt-get upgrade
RUN apt-get install -y wget openjdk-18-jre
RUN wget https://github.com/Tiiffi/mcrcon/releases/download/v0.7.2/mcrcon-0.7.2-linux-x86-64.tar.gz
RUN tar xvf mcrcon-0.7.2-linux-x86-64.tar.gz
# from https://www.minecraft.net/en-us/download/server (currently 1.20.1)
RUN wget https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar
COPY eula.txt ./
COPY entry.sh ./
COPY server.properties ./
COPY ops.json ./