Minecraft_Server / Dockerfile
MemeTech's picture
Create Dockerfile
affe7e6 verified
raw
history blame
406 Bytes
FROM itzg/minecraft-server:latest
# Server environment configurations
ENV EULA=TRUE
ENV VERSION=LATEST
ENV 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