diff --git a/0.14/Dockerfile b/0.14/Dockerfile index a50c4a8..7bebd07 100644 --- a/0.14/Dockerfile +++ b/0.14/Dockerfile @@ -5,16 +5,16 @@ LABEL maintainer="https://github.com/factoriotools/factorio-docker" ENV VERSION=0.14.23 \ SHA1=6ef84341c6fc1cf45cfdd6acc8468aaa117b9e8a -RUN mkdir -p /opt && \ - apk --no-cache add curl tini pwgen && \ - curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ - -o /tmp/factorio_headless_x64_$VERSION.tar.gz && \ - echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.gz" | sha1sum -c && \ - tar xzf /tmp/factorio_headless_x64_$VERSION.tar.gz --directory /opt && \ - rm /tmp/factorio_headless_x64_$VERSION.tar.gz && \ - apk del curl && \ - ln -s /factorio/saves /opt/factorio/saves && \ - ln -s /factorio/mods /opt/factorio/mods +RUN mkdir -p /opt \ + && apk --no-cache add curl tini pwgen \ + && curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ + -o /tmp/factorio_headless_x64_$VERSION.tar.gz \ + && echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.gz" | sha1sum -c \ + && tar xzf /tmp/factorio_headless_x64_$VERSION.tar.gz --directory /opt \ + && rm /tmp/factorio_headless_x64_$VERSION.tar.gz \ + && apk del curl \ + && ln -s /factorio/saves /opt/factorio/saves \ + && ln -s /factorio/mods /opt/factorio/mods VOLUME /factorio diff --git a/0.15/Dockerfile b/0.15/Dockerfile index 9d716de..d78e039 100644 --- a/0.15/Dockerfile +++ b/0.15/Dockerfile @@ -7,18 +7,18 @@ ENV PORT=34197 \ VERSION=0.15.40 \ SHA1=f79a975f6b8c0ee87e2fa60f7d1f7133f332c3ec -RUN mkdir -p /opt && \ - apk add --update --no-cache tini pwgen && \ - apk add --update --no-cache --virtual .build-deps curl && \ - curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ - -o /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \ - tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \ - chmod -R ugo=rwx /opt/factorio && \ - rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - ln -s /factorio/saves /opt/factorio/saves && \ - ln -s /factorio/mods /opt/factorio/mods && \ - apk del .build-deps +RUN mkdir -p /opt \ + && apk add --update --no-cache tini pwgen \ + && apk add --update --no-cache --virtual .build-deps curl \ + && curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ + -o /tmp/factorio_headless_x64_$VERSION.tar.xz \ + && echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c \ + && tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt \ + && chmod -R ugo=rwx /opt/factorio \ + && rm /tmp/factorio_headless_x64_$VERSION.tar.xz \ + && ln -s /factorio/saves /opt/factorio/saves \ + && ln -s /factorio/mods /opt/factorio/mods \ + && apk del .build-deps VOLUME /factorio diff --git a/0.16/Dockerfile b/0.16/Dockerfile index 5746f0a..0b88871 100644 --- a/0.16/Dockerfile +++ b/0.16/Dockerfile @@ -19,23 +19,23 @@ ENV PORT=34197 \ PUID="$PUID" \ PGID="$PGID" -RUN mkdir -p /opt /factorio && \ - apk add --update --no-cache pwgen su-exec shadow && \ - apk add --update --no-cache --virtual .build-deps curl && \ - curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ - -o /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \ - tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \ - chmod ugo=rwx /opt/factorio && \ - rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - ln -s $SAVES /opt/factorio/saves && \ - ln -s $MODS /opt/factorio/mods && \ - ln -s $SCENARIOS /opt/factorio/scenarios && \ - ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \ - apk del .build-deps && \ - addgroup -g $PGID -S $GROUP && \ - adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \ - chown -R $USER:$GROUP /opt/factorio /factorio +RUN mkdir -p /opt /factorio \ + && apk add --update --no-cache pwgen su-exec shadow \ + && apk add --update --no-cache --virtual .build-deps curl \ + && curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \ + -o /tmp/factorio_headless_x64_$VERSION.tar.xz \ + && echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c \ + && tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt \ + && chmod ugo=rwx /opt/factorio \ + && rm /tmp/factorio_headless_x64_$VERSION.tar.xz \ + && ln -s $SAVES /opt/factorio/saves \ + && ln -s $MODS /opt/factorio/mods \ + && ln -s $SCENARIOS /opt/factorio/scenarios \ + && ln -s $SCRIPTOUTPUT /opt/factorio/script-output \ + && apk del .build-deps \ + && addgroup -g $PGID -S $GROUP \ + && adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER \ + && chown -R $USER:$GROUP /opt/factorio /factorio VOLUME /factorio diff --git a/0.17/Dockerfile b/0.17/Dockerfile index ac26483..8e76e2c 100644 --- a/0.17/Dockerfile +++ b/0.17/Dockerfile @@ -19,21 +19,21 @@ ENV PORT=34197 \ PUID="$PUID" \ PGID="$PGID" -RUN mkdir -p /opt /factorio && \ - apk add --update --no-cache --no-progress bash binutils curl gettext jq libintl pwgen shadow su-exec && \ - curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" \ - -o /tmp/factorio_headless_x64_$VERSION.tar.xz && \ - echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \ - tar xf "/tmp/factorio_headless_x64_$VERSION.tar.xz" --directory /opt && \ - chmod ugo=rwx /opt/factorio && \ - rm "/tmp/factorio_headless_x64_$VERSION.tar.xz" && \ - ln -s "$SAVES" /opt/factorio/saves && \ - ln -s "$MODS" /opt/factorio/mods && \ - ln -s "$SCENARIOS" /opt/factorio/scenarios && \ - ln -s "$SCRIPTOUTPUT" /opt/factorio/script-output && \ - addgroup -g "$PGID" -S "$GROUP" && \ - adduser -u "$PUID" -G "$GROUP" -s /bin/sh -SDH "$USER" && \ - chown -R "$USER":"$GROUP" /opt/factorio /factorio +RUN mkdir -p /opt /factorio \ + && apk add --update --no-cache --no-progress bash binutils curl gettext jq libintl pwgen shadow su-exec \ + && curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" \ + -o /tmp/factorio_headless_x64_$VERSION.tar.xz \ + && echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c \ + && tar xf "/tmp/factorio_headless_x64_$VERSION.tar.xz" --directory /opt \ + && chmod ugo=rwx /opt/factorio \ + && rm "/tmp/factorio_headless_x64_$VERSION.tar.xz" \ + && ln -s "$SAVES" /opt/factorio/saves \ + && ln -s "$MODS" /opt/factorio/mods \ + && ln -s "$SCENARIOS" /opt/factorio/scenarios \ + && ln -s "$SCRIPTOUTPUT" /opt/factorio/script-output \ + && addgroup -g "$PGID" -S "$GROUP" \ + && adduser -u "$PUID" -G "$GROUP" -s /bin/sh -SDH "$USER" \ + && chown -R "$USER":"$GROUP" /opt/factorio /factorio VOLUME /factorio