modified: Dockerfile

new file:   start.sh
Start up script for bedrock
This commit is contained in:
Jonathan Ervine 2020-04-07 10:31:29 +08:00
parent 110856c9ea
commit b793d14219
2 changed files with 10 additions and 1 deletions

View File

@ -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" ]

7
start.sh Executable file
View File

@ -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