first commit
This commit is contained in:
commit
7abd6f1bb1
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
12
bedrockserver.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user