15 lines
711 B
Docker
15 lines
711 B
Docker
FROM alpine
|
|
ARG VERSION
|
|
RUN mkdir -p /opt/factorio
|
|
WORKDIR /opt/factorio
|
|
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
|
|
RUN bin/x64/factorio --create saves/default.zip
|
|
EXPOSE 34197
|
|
ENTRYPOINT [ "/opt/factorio/bin/x64/factorio", "--port", "34197" ]
|
|
CMD [ "--start-server", "saves/default.zip" ] |