added minecraft and factorio
This commit is contained in:
parent
a79619b74d
commit
5f19ad5c36
10
factorio/Dockerfile
Normal file
10
factorio/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM alpine
|
||||
ARG VERSION
|
||||
RUN mkdir -p /opt/factorio
|
||||
WORKDIR /opt/factorio
|
||||
RUN apk add jq curl wget
|
||||
RUN cd /opt && \
|
||||
wget -O /opt/server.tar.xz https://www.factorio.com/get-download/1.1.100/headless/linux64 && \
|
||||
tar -xf /opt/server.tar.xz && \
|
||||
rm /opt/server.tar.xz
|
||||
ENTRYPOINT [ "executable" ]
|
7
factorio/create.sh
Normal file
7
factorio/create.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
if [[ -z $VERSION ]] ;
|
||||
then VERSION=$(\
|
||||
curl https://factorio.com/api/latest-releases | \
|
||||
jq -r .stable.headless\
|
||||
);
|
||||
fi;
|
7
minecraft/paper/create.sh
Normal file
7
minecraft/paper/create.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
if [[ -z $VERSION ]] ;
|
||||
then
|
||||
VERSION=$(curl https://api.papermc.io/v2/projects/paper | \
|
||||
jq -r .versions[-1]);
|
||||
fi;
|
||||
docker build -t minecraft:paper-${VERSION} . --arg VERSION=${VERSION}
|
Loading…
x
Reference in New Issue
Block a user