Put saves into data dir

This commit is contained in:
Knut Ahlers 2016-12-15 04:37:34 +01:00
parent c21dccf82d
commit 3722dba10c
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -14,7 +14,8 @@ RUN set -ex \
&& useradd -d /opt/factorio -M -u 10000 factorio \ && useradd -d /opt/factorio -M -u 10000 factorio \
&& tar -C /opt -x -z -f /tmp/factorio.tgz \ && tar -C /opt -x -z -f /tmp/factorio.tgz \
&& chown -R factorio:factorio /opt/factorio \ && chown -R factorio:factorio /opt/factorio \
&& rm /tmp/factorio.tgz && rm /tmp/factorio.tgz \
&& sed -i "s;^write-data=.*$;write-data=/data;" /opt/factorio/config/config.ini
USER factorio USER factorio