diff --git a/Dockerfile b/Dockerfile index 913c5af..c1cb00c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ RUN apt update && apt upgrade -y RUN apt install unzip curl -y RUN mkdir /bedrock && cd /bedrock && curl -LO https://minecraft.azureedge.net/bin-linux/bedrock-server-1.14.32.1.zip && unzip bedrock-server-1.14.32.1.zip && rm bedrock-server-1.14.32.1.zip +ADD start.sh /usr/local/bin/ + EXPOSE 19133 VOLUME config -CMD [ "/bedrock/bedrock_server", "--data=/config" ] +CMD [ "/usr/local/bin/start.sh" ] diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..28e6a11 --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash +## Script to start up Minecraft Bedrock Server +## Config files to be located in /config +## + +cd /config +/bedrock/bedrock_server