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" ]