diff --git a/Dockerfile b/Dockerfile index b38e0d4..b05ae15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,12 @@ ENV SERVERSETTINGS /opt/factorio/server-settings.json WORKDIR /opt/factorio -RUN wget -q -O - https://factorio.com/get-download/stable/headless/linux64 \ +RUN wget -q -O - https://www.factorio.com/download \ + | grep -o -m1 "/get-download/.*/headless/linux64" \ | awk '{print "--no-check-certificate https://www.factorio.com"$1" -q -O /tmp/factorio.tar.gz"}' \ | xargs wget \ - && tar -xzf /tmp/factorio.tar.gz -C /opt \ - && rm -rf /tmp/factorio.tar.gz + && tar -xf /tmp/factorio.tar.gz -C /opt \ + && rm -rf /tmp/factorio.tar.gz ADD map-gen-settings.json /opt/factorio/ ADD server-settings.json /opt/factorio/