rastof9 commited on
Commit
91490f9
·
verified ·
1 Parent(s): 763666e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
  # Base image: Minecraft server
2
  FROM itzg/minecraft-server:latest
3
 
4
- # Install Python's Flask using the system package manager (apt)
5
- # This is the correct way to avoid the "externally-managed-environment" error
6
  RUN apt-get update && \
7
  apt-get install -y python3-flask
8
 
9
  # Environment variables
10
  ENV EULA=TRUE
11
  ENV VERSION=latest
12
- ENV MEMORY=512M
 
 
13
  ENV ONLINE_MODE=FALSE
14
  ENV DIFFICULTY=easy
15
  ENV MAX_PLAYERS=2
 
1
  # Base image: Minecraft server
2
  FROM itzg/minecraft-server:latest
3
 
4
+ # Install Python's Flask using the system package manager
 
5
  RUN apt-get update && \
6
  apt-get install -y python3-flask
7
 
8
  # Environment variables
9
  ENV EULA=TRUE
10
  ENV VERSION=latest
11
+ # REMOVED: ENV MEMORY=512M
12
+ # ADDED: Directly set Java's initial (-Xms) and maximum (-Xmx) memory
13
+ ENV JVM_OPTS="-Xms256M -Xmx512M"
14
  ENV ONLINE_MODE=FALSE
15
  ENV DIFFICULTY=easy
16
  ENV MAX_PLAYERS=2