first commit

This commit is contained in:
Phillip Kühne 2018-10-14 22:40:01 +02:00
commit 7abd6f1bb1
2 changed files with 28 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget curl ca-certificates unzip libssl1.0.0
COPY ./bedrockserver.sh /usr/bin/bedrockserver.sh
ADD https://minecraft.azureedge.net/bin-linux/bedrock-server-1.6.1.0.zip /tmp/brserver.zip
RUN mkdir /opt/mcbedrock/ -p
RUN unzip /tmp/brserver.zip -d /opt/mcbedrock/
WORKDIR /opt/mcbedrock
EXPOSE 19133
EXPOSE 19132
CMD ["bash", "-c", "/usr/bin/bedrockserver.sh"]

12
bedrockserver.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$EULA" == "accept" ]
then
echo "EULA accepted."
else
echo "EULA not accepted. Please set the environment variable EULA to 'accept' to accept the Minecraft EULA (https://minecraft.net/terms) and privacy policy (https://go.microsoft.com/fwlink/?LinkId=521839)"
exit 1
fi
echo "Starting Minecraft Bedrock Edition Server..."
cd /opt/mcbedrock
LD_LIBRARY_PATH=. ./bedrock_server