ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / |
CMD ["/bin/sh"] |
ARG VERSION=2.0.47 |
RUN |1 VERSION=2.0.47 /bin/sh -c mkdir -p /opt/factorio # buildkit |
WORKDIR /opt/factorio |
RUN |1 VERSION=2.0.47 /bin/sh -c 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 # buildkit |
RUN |1 VERSION=2.0.47 /bin/sh -c 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 # buildkit |
RUN |1 VERSION=2.0.47 /bin/sh -c bin/x64/factorio --create saves/default.zip # buildkit |
EXPOSE map[34197/tcp:{}] |
ENTRYPOINT ["/opt/factorio/bin/x64/factorio" "--port" "34197"] |
CMD ["--start-server" "saves/default.zip"] |
LABEL type=GAME |