1
0
mirror of https://github.com/factoriotools/factorio-docker.git synced 2025-01-28 03:29:30 +02:00

13 lines
537 B
Bash
Raw Normal View History

2016-10-26 17:27:28 +00:00
mkdir -p /tmp/factorio
mkdir -p /tmp/factorio/mods
mkdir -p /tmp/factorio/saves
cp -n server-settings.example.json /tmp/factorio/server-settings.json
cp -n map-gen-settings.example.json /tmp/factorio/map-gen-settings.json
2016-10-25 18:31:07 +00:00
sudo docker run --rm -it \
2016-10-26 17:27:28 +00:00
-v /tmp/factorio/server-settings.json:/opt/factorio/data/server-settings.json \
-v /tmp/factorio/map-gen-settings.json:/opt/factorio/data/map-gen-settings.json \
-v /tmp/factorio/mods:/opt/factorio/mods \
-v /tmp/factorio/saves:/opt/factorio/saves \
2016-10-25 18:31:07 +00:00
--name factorio \
2016-10-26 17:27:28 +00:00
factorio "$@"