Added version variable to Dockerfile

This commit is contained in:
Jonathan Ervine 2020-07-15 17:38:45 +08:00
parent 9861f4eb83
commit 5e81cc8df5

View File

@ -2,11 +2,14 @@ FROM debian:buster-slim
MAINTAINER “Jonathan Ervine” <docker@ervine.org> MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Set ENV variables
ENV VERSION='1.16.1.02'
# Install updates # Install updates
RUN apt update && apt upgrade -y RUN apt update && apt upgrade -y
RUN apt install unzip curl -y RUN apt install unzip curl -y
RUN mkdir /bedrock && cd /bedrock && curl -LO https://minecraft.azureedge.net/bin-linux/bedrock-server-1.16.1.02.zip && unzip bedrock-server-1.16.1.02.zip && rm bedrock-server-1.16.1.02.zip RUN mkdir /bedrock && cd /bedrock && curl -LO https://minecraft.azureedge.net/bin-linux/bedrock-server-$VERSION.zip && unzip bedrock-server-$VERSION.zip && rm bedrock-server-$VERSION.zip
ADD start.sh /usr/local/bin/ ADD start.sh /usr/local/bin/