fixed all installers

This commit is contained in:
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 .