This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (40 loc) · 1.4 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
FROM ubuntu:latest
LABEL maintainer="github.com/assert-not-singularity"
# Download packages and server binaries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libcurl4 \
libssl1.1 \
nano \
tzdata \
unzip \
wget && \
rm -rf /var/lib/apt/lists/*
RUN wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.201.02.zip -qO bedrock-server.zip && \
unzip bedrock-server.zip -d /bedrock-server && \
rm bedrock-server.zip
# Set standard timezone
ENV TZ=Europe/Berlin
# Copy Shell scripts
COPY scripts/* /bedrock-server/
VOLUME ["/data"]
WORKDIR /bedrock-server
# Perform all commands in one RUN
# Make scripts executable
RUN find . -name '*.sh' -type f -maxdepth 1 | xargs chmod +x && \
# Create symlinks to behaviour & resource packs and world data
ln -s /data/behavior_packs behavior_packs && \
ln -s /data/resource_packs resource_packs && \
ln -s /data/worlds worlds && \
# Create symlinks to mounted config files
mkdir tmp && \
mv -t tmp/ permissions.json server.properties whitelist.json && \
ln -sfb /data/config/permissions.json permissions.json && \
ln -sfb /data/config/server.properties server.properties && \
ln -sfb /data/config/whitelist.json whitelist.json
# Expose Ports for IPv4 and IPv6
EXPOSE 19132/udp
EXPOSE 19133/udp
ENV LD_LIBRARY_PATH=/.
CMD ./start.sh