1
0
mirror of https://github.com/LpmRaven/factorio-docker-server.git synced 2024-12-12 08:24:07 +02:00

Update Dockerfile

This commit is contained in:
Liam Raven 2017-02-04 23:39:37 +00:00 committed by GitHub
parent be41457079
commit b2957bef17

View File

@ -12,6 +12,7 @@ RUN useradd -m -d /opt/factorio -s /bin/bash factorio \
USER factorio USER factorio
ENV HOME /opt/factorio ENV HOME /opt/factorio
ENV SAVEFILE /opt/factorio/saves/factorio_save.zip
ENV MAPSETTINGS /opt/factorio/map-gen-settings.json ENV MAPSETTINGS /opt/factorio/map-gen-settings.json
ENV SERVERSETTINGS /opt/factorio/server-settings.json ENV SERVERSETTINGS /opt/factorio/server-settings.json
@ -25,9 +26,5 @@ ADD map-gen-settings.json /opt/factorio/
ADD server-settings.json /opt/factorio/ ADD server-settings.json /opt/factorio/
ADD init.sh /opt/factorio/ ADD init.sh /opt/factorio/
RUN mkdir /opt/factorio/saves
ADD factorio_save.zip /opt/factorio/saves
ENV SAVEFILE /opt/factorio/saves/factorio_save.zip
EXPOSE 34197/udp EXPOSE 34197/udp
CMD ["./init.sh"] CMD ["./init.sh"]