Merge pull request #101 from smessmer/patch-1

Fix volume permissions for docker-compose
This commit is contained in:
David Andersen 2017-12-30 20:26:08 -08:00 committed by GitHub
commit 648b81edf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,9 +12,7 @@ ENV PORT=34197 \
VERSION=0.16.11 \
SHA1=31d227881249eef95fb99f653fa2dada6faada48
VOLUME /factorio
RUN mkdir -p /opt && \
RUN mkdir -p /opt /factorio && \
apk add --update --no-cache pwgen && \
apk add --update --no-cache --virtual .build-deps curl && \
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 && \
chown -R $USER:$GROUP /opt/factorio /factorio
VOLUME /factorio
EXPOSE $PORT/udp $RCON_PORT/tcp
COPY ./docker-entrypoint.sh /