fixed all installers

This commit is contained in:
ACoolName 2023-12-26 23:01:04 +02:00
parent 5f19ad5c36
commit 960fc1449e
5 changed files with 16 additions and 3 deletions

View File

@ -2,9 +2,14 @@ FROM alpine
ARG VERSION
RUN mkdir -p /opt/factorio
WORKDIR /opt/factorio
RUN apk add jq curl wget
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk && \
apk add glibc-2.35-r1.apk jq curl wget && apk add gcompat || echo this is ok
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" ]
RUN bin/x64/factorio --create saves/default.zip
EXPOSE 34197
ENTRYPOINT [ "/opt/factorio/bin/x64/factorio", "--port", "34197" ]
CMD [ "--start-server", "saves/default.zip" ]

1
factorio/create.sh Normal file → Executable file
View File

@ -5,3 +5,4 @@ if [[ -z $VERSION ]] ;
jq -r .stable.headless\
);
fi;
docker build -t factorio:${VERSION} --build-arg VERSION=${VERSION} --label type=GAME .

2
minecraft/paper/create.sh Normal file → Executable file
View File

@ -4,4 +4,4 @@ then
VERSION=$(curl https://api.papermc.io/v2/projects/paper | \
jq -r .versions[-1]);
fi;
docker build -t minecraft:paper-${VERSION} . --arg VERSION=${VERSION}
docker build -t minecraft:paper-${VERSION} . --build-arg VERSION=${VERSION}

5
steam/gmod/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM i386/ubuntu
RUN apt-get update && apt-get install -y wget && mkdir -p /opt/steamcmd && cd /opt/steamcmd && wget http://media.steampowered.com/client/steamcmd_linux.tar.gz && tar -xvzf steamcmd_linux.tar.gz
RUN mkdir -p /opt/server
WORKDIR /opt/server
RUN /opt/steamcmd/steamcmd.sh +force_install_dir . +login anonymous +force_install_dir . +app_update 4020 validate +quit

2
steam/gmod/create.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/zsh
docker build -t garrys-mod:latest .