forked from Roemer/bedrock-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (28 loc) · 1.3 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
FROM ubuntu:18.04
# Set Minecraft bedrock versuin
ENV VERSION=1.16.221.01
ENV TZ=Europe/Copenhagen
# Set timezone
RUN echo ${TZ} > /etc/timezone
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime
# Install dependencies, download and extract the bedrock server
RUN apt-get update && \
apt-get install -y unzip curl libcurl4 tzdata && \
rm -rf /var/lib/apt/lists/* && \
curl https://minecraft.azureedge.net/bin-linux/bedrock-server-${VERSION}.zip --output bedrock-server.zip && \
unzip bedrock-server.zip -d bedrock-server && \
rm bedrock-server.zip
VOLUME /bedrock-server/data
# Delete default config (supplied from volume)
run rm -f /bedrock-server/server.properties /bedrock-server/permissions.json /bedrock-server/whitelist.json
# Setup symlinks from volume
RUN ln -s /bedrock-server/data/worlds /bedrock-server/worlds && \
ln -s /bedrock-server/data/server.properties /bedrock-server/server.properties && \
ln -s /bedrock-server/data/permissions.json /bedrock-server/permissions.json && \
ln -s /bedrock-server/data/whitelist.json /bedrock-server/whitelist.json
ADD run.sh /bedrock-server/run.sh
RUN chmod +x /bedrock-server/bedrock_server
EXPOSE 19132/udp
WORKDIR /bedrock-server
ENV LD_LIBRARY_PATH=.
CMD ./run.sh