x86_64-suse-pocketmine/Dockerfile
Jonathan Ervine 4af24d2dbe modified: Dockerfile
modified:   Jenkinsfile
Bumped to version 3.12.0
2020-04-18 23:50:43 +08:00

35 lines
1.1 KiB
Docker

# Base on latest (edge) alpine image
FROM opensuse/leap:15.1
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
PM_USER='pmmp' \
PM_GROUP='pmmp' \
PM_UID='1003' \
PM_GID='1003'
RUN zypper -n in tar wget gzip
RUN groupadd -g $PM_GID $PM_GROUP
RUN useradd -u $PM_UID -g $PM_GROUP -M $PM_USER
RUN mkdir /pmmp
RUN chown $PM_USER:$PM_GROUP /pmmp
RUN wget -q -O - https://jenkins.pmmp.io/job/PHP-7.3-Aggregate/lastSuccessfulBuild/artifact/PHP-7.3-Linux-x86_64.tar.gz > /pmmp/PHP-7.3-Linux-x86_64.tar.gz
RUN cd /pmmp && tar zxvf PHP-7.3-Linux-x86_64.tar.gz
ADD php.ini /pmmp/bin/php7/bin/php.ini
RUN rm /pmmp/PHP-7.3-Linux-x86_64.tar.gz
RUN wget -q -O - https://github.com/pmmp/PocketMine-MP/releases/download/3.12.0/PocketMine-MP.phar > /pmmp/PocketMine-MP.phar
RUN chown -R $PM_USER:$PM_GROUP /pmmp
VOLUME /plugins
VOLUME /config
EXPOSE 19132/udp
USER $PM_USER
CMD [ "/pmmp/bin/php7/bin/php", "/pmmp/PocketMine-MP.phar", "--no-wizard", "--enable-ansi", "--data=/config", "--plugins=/plugins" ]