Update for new download URL
This commit is contained in:
parent
0120036b1d
commit
919226b2b5
1 changed files with 9 additions and 5 deletions
14
Dockerfile
14
Dockerfile
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue