mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 03:07:24 +01:00
Merge pull request #157 from afex/master
Expose script-output to mounted volume
This commit is contained in:
commit
24ac45dbce
@ -14,7 +14,8 @@ ENV PORT=34197 \
|
|||||||
SAVES=/factorio/saves \
|
SAVES=/factorio/saves \
|
||||||
CONFIG=/factorio/config \
|
CONFIG=/factorio/config \
|
||||||
MODS=/factorio/mods \
|
MODS=/factorio/mods \
|
||||||
SCENARIOS=/factorio/scenarios
|
SCENARIOS=/factorio/scenarios \
|
||||||
|
SCRIPTOUTPUT=/factorio/script-output
|
||||||
|
|
||||||
RUN mkdir -p /opt /factorio && \
|
RUN mkdir -p /opt /factorio && \
|
||||||
apk add --update --no-cache pwgen && \
|
apk add --update --no-cache pwgen && \
|
||||||
@ -28,6 +29,7 @@ RUN mkdir -p /opt /factorio && \
|
|||||||
ln -s $SAVES /opt/factorio/saves && \
|
ln -s $SAVES /opt/factorio/saves && \
|
||||||
ln -s $MODS /opt/factorio/mods && \
|
ln -s $MODS /opt/factorio/mods && \
|
||||||
ln -s $SCENARIOS /opt/factorio/scenarios && \
|
ln -s $SCENARIOS /opt/factorio/scenarios && \
|
||||||
|
ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \
|
||||||
apk del .build-deps && \
|
apk del .build-deps && \
|
||||||
addgroup -g $PGID -S $GROUP && \
|
addgroup -g $PGID -S $GROUP && \
|
||||||
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
||||||
|
@ -8,6 +8,7 @@ mkdir -p $SAVES
|
|||||||
mkdir -p $CONFIG
|
mkdir -p $CONFIG
|
||||||
mkdir -p $MODS
|
mkdir -p $MODS
|
||||||
mkdir -p $SCENARIOS
|
mkdir -p $SCENARIOS
|
||||||
|
mkdir -p $SCRIPTOUTPUT
|
||||||
|
|
||||||
if [ ! -f $CONFIG/rconpw ]; then
|
if [ ! -f $CONFIG/rconpw ]; then
|
||||||
echo $(pwgen 15 1) > $CONFIG/rconpw
|
echo $(pwgen 15 1) > $CONFIG/rconpw
|
||||||
|
Loading…
Reference in New Issue
Block a user