1
0
mirror of https://github.com/LpmRaven/factorio-docker-server.git synced 2024-11-30 08:06:56 +02:00

Update Dockerfile

This commit is contained in:
Liam Raven 2021-09-05 10:56:21 +10:00 committed by GitHub
parent 6611f5ab86
commit 121f1465e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,14 +13,18 @@ USER factorio
ENV HOME /opt/factorio
ENV SAVEFILE /opt/factorio/saves/factorio_save.zip
ENV MAPSETTINGS /opt/factorio/map-gen-settings.json
ENV MAPGENSETTINGS /opt/factorio/map-gen-settings.json
ENV MAPSETTINGS /opt/factorio/map-settings.json
ENV SERVERSETTINGS /opt/factorio/server-settings.json
WORKDIR /opt/factorio
RUN wget -q -O - https://factorio.com/get-download/stable/headless/linux64 | grep -o -m1 "/get-download/.*/headless/linux64" | awk '{print "--no-check-certificate https://www.factorio.com"$1" -O /tmp/factorio.tar.gz"}' | xargs wget \
&& tar -xzf /tmp/factorio.tar.gz -C /opt \
&& rm -rf /tmp/factorio.tar.gz
RUN wget -q -O - https://factorio.com/get-download/stable/headless/linux64 \
| 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
ADD map-gen-settings.json /opt/factorio/
ADD server-settings.json /opt/factorio/