Minecraft_Server / Dockerfile
MemeTech's picture
Update Dockerfile
07580f6 verified
raw
history blame
583 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
# Mojang servers and HF servers are having a communication issue apparently
ENV ONLINE_MODE=FALSE
# I should warn about that...
RUN echo "You will get a security warning about online mode being disabled, ignore it unless you get hacked."
# Random seed?
ENV MOTD="A server hosted on HF Spaces"
ENV MAX_PLAYERS=40
EXPOSE 25565
ENV SERVER_PORT=25565