Spaces:
Running
Running
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 | |
# HF complains because of the lack of an HTTP server, which also seems to break Minecraft... | |
RUN echo "Ignore the 500 error. If it's not a Minecraft error, it's not a relavent one." |