forked from karlrees/docker_bedrockserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 788 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (23 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu
ENV container docker
# set minecraft world name and port and apk filename
ENV WORLD='default'
ENV MCPORT=19132
ARG INSTALLERURL=https://minecraft.azureedge.net/bin-linux/bedrock-server-1.12.1.1.zip
ENV MCSERVERFOLDER=/srv/bedrockserver
EXPOSE $MCPORT
# install dependencies
RUN apt-get update
RUN apt-get install -y curl unzip
# create folders for minecraft resources
VOLUME $MCSERVERFOLDER/worlds
# install minecraft
RUN curl $INSTALLERURL --output mc.zip
RUN unzip mc.zip -d $MCSERVERFOLDER
RUN rm mc.zip
# copy over server properties template
COPY server.properties.template $MCSERVERFOLDER/server.properties.template
# set up startup script
COPY startup.sh /srv/bedrockserver/
RUN chmod +x /srv/bedrockserver/startup.sh
ENTRYPOINT ["/srv/bedrockserver/startup.sh"]