Fix migration when config is mounted (#318)

This commit is contained in:
Sandro
2020-05-23 03:05:56 +02:00
committed by GitHub
parent 44d4898862
commit ef6bbde78d
6 changed files with 1479 additions and 18 deletions

View File

@ -31,19 +31,13 @@ RUN set -ox pipefail \
&& chmod ugo=rwx /opt/factorio \
&& rm "$archive" \
&& mkdir -p /opt/factorio/config/ \
&& printf "\
[path]\n\
read-data=__PATH__executable__/../../data\n\
write-data=/factorio\n\
" >> /opt/factorio/config/config.ini \
&& addgroup -g "$PGID" -S "$GROUP" \
&& adduser -u "$PUID" -G "$GROUP" -s /bin/sh -SDH "$USER" \
&& chown -R "$USER":"$GROUP" /opt/factorio /factorio
COPY files/*.sh /
COPY files/config.ini /opt/factorio/config/config.ini
VOLUME /factorio
EXPOSE $PORT/udp $RCON_PORT/tcp
COPY files/ /
ENTRYPOINT ["/docker-entrypoint.sh"]