diff --git a/rxr_mc/docker-compose.yaml b/rxr_mc/docker-compose.yaml index f751f56..ed9059d 100644 --- a/rxr_mc/docker-compose.yaml +++ b/rxr_mc/docker-compose.yaml @@ -1,6 +1,6 @@ services: minecraft: - image: chainguard/jre:latest + image: openjdk:25-jdk-bookworm # 使用 JRE 版本的镜像 container_name: minecraft-server working_dir: /mc-server environment: @@ -8,7 +8,7 @@ services: volumes: - ${MC_DIR}:/mc-server command: > - -jar ${JAR_FILE} nogui + java -jar ${JAR_FILE} nogui ports: - "25565:25565" stdin_open: true