Minecraft_Server / Dockerfile
MemeTech's picture
Update Dockerfile
76a2c9e verified
raw
history blame
477 Bytes
FROM itzg/minecraft-server:latest
# Server environment configurations
ENV EULA=TRUE
ENV VERSION=LATEST
# Set initial and maximum memory limits to 8 GB
ENV INIT_MEMORY=8G
ENV MAX_MEMORY=8G
ENV DIFFICULTY=peaceful
ENV GAMEMODE=creative
ENV ONLINE_MODE=TRUE
# Random seed?
ENV MOTD="A server hosted on HF Spaces"
ENV MAX_PLAYERS=40
# Expose Minecraft server on port 7860 instead of 25565
EXPOSE 7860
# Set the server to listen on port 7860 instead of 25565
ENV SERVER_PORT=7860