Update papermc, openjdk docker image is deprecated, switch to eclipse-temurin

This commit is contained in:
Sivert V. Sæther
2025-11-18 15:41:55 +01:00
parent 1b8b74628d
commit 90d6406472
2 changed files with 16 additions and 21 deletions

View File

@@ -1,15 +1,14 @@
FROM openjdk:17-slim
FROM eclipse-temurin:21
ENV MC_VERSION="latest" \
PAPER_BUILD="latest" \
MC_RAM="4G" \
JAVA_OPTS=""
# PAPER_BUILD="latest"
ADD papermc.sh .
RUN apt-get update \
&& apt-get install -y wget \
&& apt-get install -y jq \
&& mkdir /papermc
RUN apt update && apt install -y jq && \
apt clean && rm -rf /var/lib/apt/lists/* && \
mkdir /papermc
CMD ["sh", "./papermc.sh"]