File size: 766 Bytes
affe7e6
 
 
 
 
76a2c9e
 
 
affe7e6
 
7b45249
34cd292
7b45249
 
 
affe7e6
 
 
 
6bbf9d8
79a91e7
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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."