From 77f1be415ad0aaa6207e8aef7beb3de167275b07 Mon Sep 17 00:00:00 2001 From: Julia Date: Fri, 5 Nov 2021 21:40:24 +0100 Subject: [PATCH] Add minecraft-purpur and customphp --- customphp/Dockerfile | 15 +++++++++++++++ customphp/build.sh | 1 + minecraft-purpur/Dockerfile | 13 +++++++++++++ minecraft-purpur/build.sh | 1 + minecraft-purpur/docker-compose.yml | 7 +++++++ 5 files changed, 37 insertions(+) create mode 100644 customphp/Dockerfile create mode 100755 customphp/build.sh create mode 100644 minecraft-purpur/Dockerfile create mode 100755 minecraft-purpur/build.sh create mode 100644 minecraft-purpur/docker-compose.yml diff --git a/customphp/Dockerfile b/customphp/Dockerfile new file mode 100644 index 0000000..188c3d5 --- /dev/null +++ b/customphp/Dockerfile @@ -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 diff --git a/customphp/build.sh b/customphp/build.sh new file mode 100755 index 0000000..02daf58 --- /dev/null +++ b/customphp/build.sh @@ -0,0 +1 @@ +docker build --no-cache -t customphp . diff --git a/minecraft-purpur/Dockerfile b/minecraft-purpur/Dockerfile new file mode 100644 index 0000000..e6f7def --- /dev/null +++ b/minecraft-purpur/Dockerfile @@ -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" ] diff --git a/minecraft-purpur/build.sh b/minecraft-purpur/build.sh new file mode 100755 index 0000000..f7e3e55 --- /dev/null +++ b/minecraft-purpur/build.sh @@ -0,0 +1 @@ +docker build --no-cache -t minecraft-purpur:$1 --build-arg VERSION=$1 . diff --git a/minecraft-purpur/docker-compose.yml b/minecraft-purpur/docker-compose.yml new file mode 100644 index 0000000..5323e4d --- /dev/null +++ b/minecraft-purpur/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" + +services: + minecraft: + image: minecraft-purpur: + volumes: + - ./data:/usr/games/minecraft-purpur/data