Update Dockerfile
Browse files123456789101112131415# Base image: Minecraft serverFROM itzg/minecraft-server:latest# Install Python's Flask using the system package manager (apt)# This is the correct way to avoid the "externally-managed-environment" errorRUN apt-get update && \apt-get install -y python3-flask# Environment variablesENV EULA=TRUEENV VERSION=latestENV MEMORY=512MENV ONLINE_MODE=FALSEENV DIFFICULTY=easyENV MAX_PLAYERS=212345678910111213141516# Base image: Minecraft serverFROM itzg/minecraft-server:latest# Install Python's Flask using the system package managerRUN apt-get update && \apt-get install -y python3-flask# Environment variablesENV EULA=TRUEENV VERSION=latest# REMOVED: ENV MEMORY=512M# ADDED: Directly set Java's initial (-Xms) and maximum (-Xmx) memoryENV JVM_OPTS="-Xms256M -Xmx512M"ENV ONLINE_MODE=FALSEENV DIFFICULTY=easyENV MAX_PLAYERS=2
Dockerfile+4-3