FLODARELTIH commited on
Commit
5ebb91e
·
verified ·
1 Parent(s): 79a91e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -12
Dockerfile CHANGED
@@ -1,24 +1,26 @@
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."
 
 
 
 
1
  FROM itzg/minecraft-server:latest
2
 
3
+ # Accept EULA
4
  ENV EULA=TRUE
5
+
6
+ # Use Paper instead of Vanilla
7
+ ENV TYPE=PAPER
8
+ ENV PAPER_VERSION=1.21.9
9
+
10
+ # Memory
11
  ENV INIT_MEMORY=8G
12
  ENV MAX_MEMORY=8G
13
+
14
+ # Server settings
15
  ENV DIFFICULTY=peaceful
16
  ENV GAMEMODE=creative
 
17
  ENV ONLINE_MODE=FALSE
 
 
 
 
18
  ENV MOTD="A server hosted on HF Spaces"
19
  ENV MAX_PLAYERS=40
 
 
20
  ENV SERVER_PORT=25565
21
 
22
+ # Copy your plugin(s) into the server
23
+ # assumes you have a local ./plugins folder
24
+ COPY plugins/ /plugins/
25
+
26
+ EXPOSE 25565