-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
36 lines (23 loc) · 901 Bytes
/
Dockerfile
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
31
32
33
34
35
36
FROM ubuntu:14.04
MAINTAINER 5t111111 https://github.com/5t111111
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y \
wget \
perl gcc g++ make automake libtool autoconf m4 \
gcc-multilib
RUN adduser --gecos 'PocketMine-MP' --disabled-password --home /pocketmine pocketmine
WORKDIR /pocketmine
RUN mkdir /pocketmine/PocketMine-MP
RUN chown -R pocketmine:pocketmine /pocketmine
COPY assets/server.properties /pocketmine/server.properties.original
COPY assets/entrypoint.sh /pocketmine/entrypoint.sh
RUN chmod 755 /pocketmine/entrypoint.sh
USER pocketmine
ENV GNUPGHOME /pocketmine
RUN gpg --keyserver pgp.mit.edu --recv-key 2280B75B
ENV PHP_BINARY /pocketmine/PocketMine-MP/bin/php5/bin/php
RUN cd PocketMine-MP && wget -q -O - http://cdn.pocketmine.net/installer.sh | bash -s - -v beta
EXPOSE 19132
EXPOSE 19132/udp
ENTRYPOINT ["./entrypoint.sh"]