superchatai commited on
Commit
3549b51
·
verified ·
1 Parent(s): 7cec2da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -3
Dockerfile CHANGED
@@ -1,7 +1,24 @@
1
  FROM itzg/minecraft-server:latest
2
 
 
3
  ENV EULA=TRUE
4
- ENV INITIAL_MEMORY=4G
5
- ENV MAX_MEMORY=4G
 
 
 
 
 
 
 
 
6
 
7
- EXPOSE 25575/tcp
 
 
 
 
 
 
 
 
 
1
  FROM itzg/minecraft-server:latest
2
 
3
+ # Server environment configurations
4
  ENV EULA=TRUE
5
+ ENV VERSION=LATEST
6
+ # Set initial and maximum memory limits to 8 GB
7
+ ENV INIT_MEMORY=8G
8
+ ENV MAX_MEMORY=8G
9
+ ENV DIFFICULTY=peaceful
10
+ ENV GAMEMODE=creative
11
+ # Mojang servers and HF servers are having a communication issue apparently
12
+ ENV ONLINE_MODE=FALSE
13
+ # I should warn about that...
14
+ RUN echo "You will get a security warning about online mode being disabled, ignore it unless you get hacked."
15
 
16
+ # Random seed?
17
+ ENV MOTD="A server hosted on HF Spaces"
18
+ ENV MAX_PLAYERS=40
19
+
20
+ EXPOSE 25565
21
+ ENV SERVER_PORT=25565
22
+
23
+ # HF complains because of the lack of an HTTP server, which also seems to break Minecraft...
24
+ RUN echo "Ignore the 500 error. If it's not a Minecraft error, it's not a relavent one."