mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-27 03:18:24 +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 PUID=845
|
||||||
ARG PGID=845
|
ARG PGID=845
|
||||||
|
|
||||||
VOLUME /factorio
|
|
||||||
|
|
||||||
ENV PORT=34197 \
|
ENV PORT=34197 \
|
||||||
RCON_PORT=27015 \
|
RCON_PORT=27015 \
|
||||||
VERSION=0.16.29 \
|
VERSION=0.16.29 \
|
||||||
@ -32,7 +30,7 @@ RUN mkdir -p /opt /factorio && \
|
|||||||
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
||||||
chown -R $USER:$GROUP /opt/factorio /factorio
|
chown -R $USER:$GROUP /opt/factorio /factorio
|
||||||
|
|
||||||
|
VOLUME /factorio
|
||||||
|
|
||||||
EXPOSE $PORT/udp $RCON_PORT/tcp
|
EXPOSE $PORT/udp $RCON_PORT/tcp
|
||||||
|
|
||||||
@ -40,6 +38,9 @@ COPY ./docker-entrypoint.sh /
|
|||||||
COPY ./scenario2map.sh /factorio/entrypoints
|
COPY ./scenario2map.sh /factorio/entrypoints
|
||||||
COPY ./scenario.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
|
USER $USER
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
@ -16,9 +16,6 @@ mkdir -p $MODS
|
|||||||
mkdir -p $SCENARIOS
|
mkdir -p $SCENARIOS
|
||||||
mkdir -p $ENTRYPOINTS
|
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
|
#chown -R factorio /factorio
|
||||||
|
|
||||||
if [ ! -f $CONFIG/rconpw ]; then
|
if [ ! -f $CONFIG/rconpw ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user