diff --git a/Dockerfile b/Dockerfile index e401881..0292ecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ -FROM openjdk:latest +FROM openjdk:8-jdk-bullseye + +RUN apt update && apt install -y unzip RUN groupadd -r minecraft -g 2000 RUN useradd --no-log-init minecraft -u 2000 -g 2000 -m WORKDIR /mc_data RUN chown -R minecraft:minecraft . +# Copy the modpack +COPY the-1122-pack/the-1122-pack_1.3.7.zip /the-1122-pack/the-1122-pack_1.3.7.zip +RUN chown -R minecraft:minecraft /the-1122-pack + USER minecraft -# Copy files only if they don't yet exist (server.jar, server.properties, etc) and start the server -CMD java -Xmx"$MAX_RAM"G -Xms"$MIN_RAM"G -jar ./server.jar nogui diff --git a/IMAGE b/IMAGE index a26228d..30eb29f 100644 --- a/IMAGE +++ b/IMAGE @@ -1 +1 @@ -ducoterra/minecraft +ducoterra/the-1122-pack diff --git a/VERSION b/VERSION index 6d7de6e..3eefcb9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.0.0