Update for new download URL

This commit is contained in:
paul 2024-02-23 15:14:57 +01:00
parent 0120036b1d
commit 919226b2b5

View file

@ -1,8 +1,8 @@
FROM debian:stretch FROM debian:bullseye
EXPOSE 34197/udp EXPOSE 34197/udp
# you can configure this by passing --build-arg=FACTORIO_VERSION=0.17.79 # 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 ADD bin/entrypoint.sh /entrypoint.sh
@ -17,12 +17,16 @@ RUN \
USER factorio USER factorio
RUN \ RUN \
wget -O- https://www.factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 \ wget -O- https://factorio.com/get-download/$FACTORIO_VERSION/headless/linux64 \
|tar xvJ -C /opt/factorio/headless | 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 VOLUME /opt/factorio/saves
WORKDIR /opt/factorio WORKDIR /opt/factorio
ENTRYPOINT ["/entrypoint.sh"] 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"]