mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-12 19:27:11 +01:00
Merge pull request #101 from smessmer/patch-1
Fix volume permissions for docker-compose
This commit is contained in:
commit
648b81edf8
@ -12,9 +12,7 @@ ENV PORT=34197 \
|
|||||||
VERSION=0.16.11 \
|
VERSION=0.16.11 \
|
||||||
SHA1=31d227881249eef95fb99f653fa2dada6faada48
|
SHA1=31d227881249eef95fb99f653fa2dada6faada48
|
||||||
|
|
||||||
VOLUME /factorio
|
RUN mkdir -p /opt /factorio && \
|
||||||
|
|
||||||
RUN mkdir -p /opt && \
|
|
||||||
apk add --update --no-cache pwgen && \
|
apk add --update --no-cache pwgen && \
|
||||||
apk add --update --no-cache --virtual .build-deps curl && \
|
apk add --update --no-cache --virtual .build-deps curl && \
|
||||||
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
||||||
@ -30,6 +28,8 @@ RUN mkdir -p /opt && \
|
|||||||
adduser -u $PUID -G $USER -s /bin/sh -SDH $GROUP && \
|
adduser -u $PUID -G $USER -s /bin/sh -SDH $GROUP && \
|
||||||
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
|
||||||
|
|
||||||
COPY ./docker-entrypoint.sh /
|
COPY ./docker-entrypoint.sh /
|
||||||
|
Loading…
Reference in New Issue
Block a user