mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-26 02:48:23 +01:00
moved volume creation back as per PR#101; create symlink once
This commit is contained in:
parent
5ddb9ab472
commit
66d4652302
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user