mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 12:47:24 +01:00
force symlinks
This commit is contained in:
parent
b48bb4c134
commit
eb22dac840
@ -7,6 +7,8 @@ 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.28 \
|
VERSION=0.16.28 \
|
||||||
@ -21,16 +23,16 @@ RUN mkdir -p /opt /factorio && \
|
|||||||
tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \
|
tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \
|
||||||
chmod ugo=rwx /opt/factorio && \
|
chmod ugo=rwx /opt/factorio && \
|
||||||
rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
||||||
ln -s /factorio/saves /opt/factorio/saves && \
|
ln -s -F -f /factorio/saves /opt/factorio/saves && \
|
||||||
ln -s /factorio/mods /opt/factorio/mods && \
|
ln -s -F -f /factorio/mods /opt/factorio/mods && \
|
||||||
ln -s /factorio/scenarios /opt/factorio/scenarios && \
|
ln -s -F -f /factorio/scenarios /opt/factorio/scenarios && \
|
||||||
ln -s /factorio/entrypoints /opt/factorio/entrypoints && \
|
ln -s -F -f /factorio/entrypoints /opt/factorio/entrypoints && \
|
||||||
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 && \
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user