moved volume creation back as per PR#101; create symlink once

This commit is contained in:
David Andersen 2018-03-12 09:38:40 -07:00
parent 5ddb9ab472
commit 66d4652302
2 changed files with 4 additions and 6 deletions

View File

@ -7,8 +7,6 @@ ARG GROUP=factorio
ARG PUID=845
ARG PGID=845
VOLUME /factorio
ENV PORT=34197 \
RCON_PORT=27015 \
VERSION=0.16.29 \
@ -32,7 +30,7 @@ RUN mkdir -p /opt /factorio && \
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
chown -R $USER:$GROUP /opt/factorio /factorio
VOLUME /factorio
EXPOSE $PORT/udp $RCON_PORT/tcp
@ -40,6 +38,9 @@ COPY ./docker-entrypoint.sh /
COPY ./scenario2map.sh /factorio/entrypoints
COPY ./scenario.sh /factorio/entrypoints
#symbolic link the default entrypoint to the entrypoints directory so it can be inspected and copied to new entrypoints
ln -s -f /docker-entrypoint.sh $ENTRYPOINTS/docker-entrypoint.sh
USER $USER
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@ -16,9 +16,6 @@ mkdir -p $MODS
mkdir -p $SCENARIOS
mkdir -p $ENTRYPOINTS
#symbolic link the default entrypoint to the entrypoints directory so it can be inspected and copied to new entrypoints
ln -s -f /docker-entrypoint.sh $ENTRYPOINTS/docker-entrypoint.sh
#chown -R factorio /factorio
if [ ! -f $CONFIG/rconpw ]; then