update volume creation

This commit is contained in:
Matthew Tran
2024-09-16 08:51:19 +00:00
parent b714e2895b
commit 2107249f47
12 changed files with 68 additions and 55 deletions
+6 -7
View File
@@ -3,9 +3,8 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y wget openjdk-21-jre
RUN useradd -m matt
USER matt
WORKDIR /home/matt
USER ubuntu
WORKDIR /home/ubuntu
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
@@ -13,7 +12,7 @@ RUN tar xvf mcrcon-0.7.2-linux-x86-64.tar.gz
# from https://www.minecraft.net/en-us/download/server (currently 1.21)
RUN wget https://piston-data.mojang.com/v1/objects/59353fb40c36d304f2035d51e7d6e6baa98dc05c/server.jar
COPY --chown=matt:matt eula.txt ./
COPY --chown=matt:matt entry.sh ./
COPY --chown=matt:matt server.properties ./
COPY --chown=matt:matt ops.json ./
COPY --chown=ubuntu:ubuntu eula.txt ./
COPY --chown=ubuntu:ubuntu entry.sh ./
COPY --chown=ubuntu:ubuntu server.properties ./
COPY --chown=ubuntu:ubuntu ops.json ./
-1
View File
@@ -1,4 +1,3 @@
#Minecraft server properties
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true