forked from julia/Dockerfiles
Add minecraft-purpur and customphp
This commit is contained in:
commit
77f1be415a
5 changed files with 37 additions and 0 deletions
15
customphp/Dockerfile
Normal file
15
customphp/Dockerfile
Normal 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
1
customphp/build.sh
Executable file
|
@ -0,0 +1 @@
|
|||
docker build --no-cache -t customphp .
|
13
minecraft-purpur/Dockerfile
Normal file
13
minecraft-purpur/Dockerfile
Normal 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
1
minecraft-purpur/build.sh
Executable file
|
@ -0,0 +1 @@
|
|||
docker build --no-cache -t minecraft-purpur:$1 --build-arg VERSION=$1 .
|
7
minecraft-purpur/docker-compose.yml
Normal file
7
minecraft-purpur/docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
minecraft:
|
||||
image: minecraft-purpur:<version>
|
||||
volumes:
|
||||
- ./data:/usr/games/minecraft-purpur/data
|
Loading…
Reference in a new issue