Add minecraft-purpur and customphp

This commit is contained in:
Julia 2021-11-05 21:40:24 +01:00
commit 77f1be415a
5 changed files with 37 additions and 0 deletions

15
customphp/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM php:fpm
RUN apt update -y
RUN apt upgrade -y
# Required by Flarum
RUN apt install -y zlib1g-dev libpng-dev
RUN docker-php-ext-install gd
# Required by IPGrabbed! Memes
RUN apt install -y ffmpeg
# Generic
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install pdo_mysql

1
customphp/build.sh Executable file
View file

@ -0,0 +1 @@
docker build --no-cache -t customphp .

View file

@ -0,0 +1,13 @@
FROM openjdk:latest
ARG VERSION
RUN mkdir /usr/games/minecraft-purpur /usr/games/minecraft-purpur/data
RUN chown -R games /usr/games
USER games
WORKDIR /usr/games/minecraft-purpur
RUN curl -o purpur.jar https://api.pl3x.net/v2/purpur/$VERSION/latest/download
WORKDIR /usr/games/minecraft-purpur/data
CMD [ "java", "-jar", "../purpur.jar" ]

1
minecraft-purpur/build.sh Executable file
View file

@ -0,0 +1 @@
docker build --no-cache -t minecraft-purpur:$1 --build-arg VERSION=$1 .

View file

@ -0,0 +1,7 @@
version: "3"
services:
minecraft:
image: minecraft-purpur:<version>
volumes:
- ./data:/usr/games/minecraft-purpur/data