Add minecraft-purpur and customphp
This commit is contained in:
commit
77f1be415a
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
docker build --no-cache -t customphp .
|
|
@ -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" ]
|
|
@ -0,0 +1 @@
|
|||
docker build --no-cache -t minecraft-purpur:$1 --build-arg VERSION=$1 .
|
|
@ -0,0 +1,7 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
minecraft:
|
||||
image: minecraft-purpur:<version>
|
||||
volumes:
|
||||
- ./data:/usr/games/minecraft-purpur/data
|
Loading…
Reference in New Issue