MemeTech commited on
Commit
affe7e6
·
verified ·
1 Parent(s): 1d1ffb3

Create Dockerfile

Browse files

https://chatgpt.com/share/672ae5c4-3ebc-8009-9e61-438da54429f8

Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM itzg/minecraft-server:latest
2
+
3
+ # Server environment configurations
4
+ ENV EULA=TRUE
5
+ ENV VERSION=LATEST
6
+ ENV MEMORY=8G
7
+ ENV DIFFICULTY=peaceful
8
+ ENV GAMEMODE=creative
9
+ ENV ONLINE_MODE=TRUE
10
+ # Random seed?
11
+ ENV MOTD="A server hosted on HF Spaces"
12
+ ENV MAX_PLAYERS=40
13
+
14
+ # Expose Minecraft server on port 7860 instead of 25565
15
+ EXPOSE 7860
16
+
17
+ # Set the server to listen on port 7860 instead of 25565
18
+ ENV SERVER_PORT=7860