From 6213e7face7e4e2397c27b55f48e5e09c733c9c3 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Mon, 13 Dec 2021 12:04:10 -0500 Subject: [PATCH] pin FROM to use 8-jdk-bullseye --- Dockerfile | 10 +++++++--- IMAGE | 2 +- VERSION | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) 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