switch to amazon corretto
All checks were successful
Minecraft Java Image / build-and-push (push) Successful in 19s

This commit is contained in:
2025-11-07 10:02:48 -05:00
parent e038672457
commit 5f0e0b41f7
4 changed files with 19 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
FROM docker.io/bitnami/java:latest
# Read more about Corretto here:
# https://hub.docker.com/_/amazoncorretto
FROM docker.io/amazoncorretto:21
WORKDIR /mc_data
CMD java -Xmx"$MAX_RAM"G -Xms"$MIN_RAM"G -jar ./server.jar nogui
CMD ["sh", "-c" , "java -Xmx${MAX_RAM}G -Xms${MIN_RAM}G -jar ./server.jar nogui"]