2016-10-26 19:27:28 +02: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 20:31:07 +02:00
|
|
|
sudo docker run --rm -it \
|
2016-10-26 19:27:28 +02: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 20:31:07 +02:00
|
|
|
--name factorio \
|
2016-10-26 19:27:28 +02:00
|
|
|
factorio "$@"
|