-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
212 lines (141 loc) · 4.16 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#
FROM debian:bookworm
#
# MC Server VARs
#
ARG ALLOWFLIGHT="false"
ENV ALLOWFLIGHT=${ALLOWFLIGHT}
ARG ALLOWNETHER="true"
ENV ALLOWNETHER=${ALLOWNETHER}
ARG BROADCASTCONSOLETOOPS="true"
ENV BROADCASTCONSOLETOOPS=${BROADCASTCONSOLETOOPS}
ARG BROADCASTRCONTOOPS="true"
ENV BROADCASTRCONTOOPS=${BROADCASTRCONTOOPS}
ARG BUGREPORTLINK=""
ENV BUGREPORTLINK=${BUGREPORTLINK}
ARG DEBUG="false"
ENV DEBUG=${DEBUG}
ARG DIFFICULTY="easy"
ENV DIFFICULTY=${DIFFICULTY}
ARG ENABLECOMMANDBLOCK="true"
ENV ENABLECOMMANDBLOCK=${ENABLECOMMANDBLOCK}
ARG ENABLEJMXMONITORING="false"
ENV ENABLEJMXMONITORING=${ENABLEJMXMONITORING}
ARG ENABLEQUERY="false"
ENV ENABLEQUERY=${ENABLEQUERY}
ARG ENABLERCON="false"
ENV ENABLERCON=${ENABLERCON}
ARG ENABLESTATUS="true"
ENV ENABLESTATUS=${ENABLESTATUS}
ARG ENFORCESECUREPROFILE="true"
ENV ENFORCESECUREPROFILE=${ENFORCESECUREPROFILE}
ARG ENFORCEWHITELIST="false"
ENV ENFORCEWHITELIST=${ENFORCEWHITELIST}
ARG ENTITYBROADCASTRANGEPERCENTAGE="100"
ENV ENTITYBROADCASTRANGEPERCENTAGE=${ENTITYBROADCASTRANGEPERCENTAGE}
ARG FORCEGAMEMODE="false"
ENV FORCEGAMEMODE=${FORCEGAMEMODE}
ARG FUNCTIONPERMISSIONLEVEL="2"
ENV FUNCTIONPERMISSIONLEVEL=${FUNCTIONPERMISSIONLEVEL}
ARG GAMEMODE="survival"
ENV GAMEMODE=${GAMEMODE}
ARG GENERATESTRUCTURES="true"
ENV GENERATESTRUCTURES=${GENERATESTRUCTURES}
ARG GENERATORSETTINGS="{}"
ENV GENERATORSETTINGS=${GENERATORSETTINGS}
ARG HARDCORE="false"
ENV HARDCORE=${HARDCORE}
ARG HIDEONLINEPLAYERS="false"
ENV HIDEONLINEPLAYERS=${HIDEONLINEPLAYERS}
ARG INITIALDISABLEDPACKS=""
ENV INITIALDISABLEDPACKS=${INITIALDISABLEDPACKS}
ARG INITIALENABLEDPACKS="vanilla"
ENV INITIALENABLEDPACKS=${INITIALENABLEDPACKS}
ARG LEVELNAME="minceraft-server"
ENV LEVELNAME=${LEVELNAME}
ARG LEVELSEED=""
ENV LEVELSEED=${LEVELSEED}
ARG LEVELTYPE="minecraft:normal"
ENV LEVELTYPE=${LEVELTYPE}
ARG LOGIPS="true"
ENV LOGIPS=${LOGIPS}
ARG MAXCHAINEDNEIGHBORUPDATES="1000000"
ENV MAXCHAINEDNEIGHBORUPDATES=${MAXCHAINEDNEIGHBORUPDATES}
ARG MAXPLAYERS="20"
ENV MAXPLAYERS=${MAXPLAYERS}
ARG MAXTICKTIME="60000"
ENV MAXTICKTIME=${MAXTICKTIME}
ARG MAXWORLDSIZE="29999984"
ENV MAXWORLDSIZE=${MAXWORLDSIZE}
ARG MOTD="Java Minceaft Server by Jimurrito"
ENV MOTD=${MOTD}
ARG NETWORKCOMPRESSIONTHRESHOLD="256"
ENV NETWORKCOMPRESSIONTHRESHOLD=${NETWORKCOMPRESSIONTHRESHOLD}
ARG ONLINEMODE="true"
ENV ONLINEMODE=${ONLINEMODE}
ARG OPPERMISSIONLEVEL="4"
ENV OPPERMISSIONLEVEL=${OPPERMISSIONLEVEL}
ARG PLAYERIDLETIMEOUT="0"
ENV PLAYERIDLETIMEOUT=${PLAYERIDLETIMEOUT}
ARG PREVENTPROXYCONNECTIONS="false"
ENV PREVENTPROXYCONNECTIONS=${PREVENTPROXYCONNECTIONS}
ARG PVP="true"
ENV PVP=${PVP}
ARG QUERYPORT="25565"
ENV QUERYPORT=${QUERYPORT}
ARG RATELIMIT="0"
ENV RATELIMIT=${RATELIMIT}
ARG RCONPASSWORD=""
ENV RCONPASSWORD=${RCONPASSWORD}
ARG RCONPORT="25575"
ENV RCONPORT=${RCONPORT}
ARG REGIONFILECOMPRESSION="deflate"
ENV REGIONFILECOMPRESSION=${REGIONFILECOMPRESSION}
ARG REQUIRERESOURCEPACK="false"
ENV REQUIRERESOURCEPACK=${REQUIRERESOURCEPACK}
ARG RESOURCEPACK=""
ENV RESOURCEPACK=${RESOURCEPACK}
ARG RESOURCEPACKID=""
ENV RESOURCEPACKID=${RESOURCEPACKID}
ARG RESOURCEPACKPROMPT=""
ENV RESOURCEPACKPROMPT=${RESOURCEPACKPROMPT}
ARG RESOURCEPACKSHA1=""
ENV RESOURCEPACKSHA1=${RESOURCEPACKSHA1}
ARG SERVERIP=""
ENV SERVERIP=${SERVERIP}
ARG SERVERPORT="25565"
ENV SERVERPORT=${SERVERPORT}
ARG SIMULATIONDISTANCE="10"
ENV SIMULATIONDISTANCE=${SIMULATIONDISTANCE}
ARG SPAWNANIMALS="true"
ENV SPAWNANIMALS=${SPAWNANIMALS}
ARG SPAWNMONSTERS="true"
ENV SPAWNMONSTERS=${SPAWNMONSTERS}
ARG SPAWNNPCS="true"
ENV SPAWNNPCS=${SPAWNNPCS}
ARG SPAWNPROTECTION="16"
ENV SPAWNPROTECTION=${SPAWNPROTECTION}
ARG SYNCCHUNKWITES="true"
ENV SYNCCHUNKWITES=${SYNCCHUNKWITES}
ARG TEXTFILTERINGCONFIG=""
ENV TEXTFILTERINGCONFIG=${TEXTFILTERINGCONFIG}
ARG USENATIVETRANSPORT="true"
ENV USENATIVETRANSPORT=${USENATIVETRANSPORT}
ARG VIEWDISTANCE="10"
ENV VIEWDISTANCE=${VIEWDISTANCE}
ARG WHITELIST="false"
ENV WHITELIST=${WHITELIST}
#
# Build
#
USER root
RUN apt update && apt install --upgrade
RUN apt install wget openjdk-17-jre-headless -y
VOLUME [ "/server" ]
RUN mkdir /server
ADD ./src /src
WORKDIR /src/server
RUN bash ../getMCServer.bash
RUN bash ../makeLinks.sh
EXPOSE 25565
CMD bash server-up.bash