From 919226b2b5387f4be871ac6a6fa5b34792f3e973 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 23 Feb 2024 15:14:57 +0100 Subject: [PATCH] Update for new download URL --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdc7aa9..2f65f31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM debian:stretch +FROM debian:bullseye EXPOSE 34197/udp # you can configure this by passing --build-arg=FACTORIO_VERSION=0.17.79 -ARG FACTORIO_VERSION=0.17.79 +ARG FACTORIO_VERSION=1.1.104 ADD bin/entrypoint.sh /entrypoint.sh @@ -17,12 +17,16 @@ RUN \ USER factorio RUN \ - wget -O- https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 \ - |tar xvJ -C /opt/factorio/headless + wget -O- https://factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 \ + | tar xvJ -C /opt/factorio/headless + +RUN mkdir /opt/factorio/headless/factorio/config/ +ADD bin/config.ini /opt/factorio/headless/factorio/config/config.ini +RUN sed -i '/write-data=/c\write-data=\/opt\/factorio/' /opt/factorio/headless/factorio/config/config.ini VOLUME /opt/factorio/saves WORKDIR /opt/factorio ENTRYPOINT ["/entrypoint.sh"] -CMD ["--server-settings", "/opt/factorio/config/config.json","--map-gen-settings","/opt/factorio/config/mapgen.json","--map-settings","/opt/factorio/config/map.json"] +CMD ["--server-settings","/opt/factorio/settings/server-settings.json"]