use bitnami java image
Some checks failed
Minecraft Java Image / build-and-push-ddns (push) Failing after 15s

This commit is contained in:
2025-07-16 00:10:09 -04:00
parent ed6638cebf
commit c1ca80b09b
3 changed files with 18 additions and 10 deletions

View File

@@ -1,10 +1,5 @@
FROM docker.io/openjdk:latest
FROM docker.io/bitnami/java:24
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 .
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