mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 11:17:23 +01:00
Add debug code when sha match fails
This commit is contained in:
parent
5a66d1a8df
commit
71c75671d5
@ -19,14 +19,16 @@ ENV PORT=34197 \
|
|||||||
PUID="$PUID" \
|
PUID="$PUID" \
|
||||||
PGID="$PGID"
|
PGID="$PGID"
|
||||||
|
|
||||||
RUN mkdir -p /opt /factorio \
|
RUN set -ox pipefail \
|
||||||
&& apk add --update --no-cache --no-progress bash binutils curl gettext jq libintl pwgen shadow su-exec \
|
&& archive="/tmp/factorio_headless_x64_$VERSION.tar.xz" \
|
||||||
&& curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" \
|
&& mkdir -p /opt /factorio \
|
||||||
-o /tmp/factorio_headless_x64_$VERSION.tar.xz \
|
&& apk add --update --no-cache --no-progress bash binutils curl file gettext jq libintl pwgen shadow su-exec \
|
||||||
&& echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c \
|
&& curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" -o "$archive" \
|
||||||
&& tar xf "/tmp/factorio_headless_x64_$VERSION.tar.xz" --directory /opt \
|
&& echo "$SHA1 $archive" | sha1sum -c \
|
||||||
|
|| (sha1sum "$archive" && file "$archive" && exit 1) \
|
||||||
|
&& tar xf "$archive" --directory /opt \
|
||||||
&& chmod ugo=rwx /opt/factorio \
|
&& chmod ugo=rwx /opt/factorio \
|
||||||
&& rm "/tmp/factorio_headless_x64_$VERSION.tar.xz" \
|
&& rm "$archive" \
|
||||||
&& ln -s "$SAVES" /opt/factorio/saves \
|
&& ln -s "$SAVES" /opt/factorio/saves \
|
||||||
&& ln -s "$MODS" /opt/factorio/mods \
|
&& ln -s "$MODS" /opt/factorio/mods \
|
||||||
&& ln -s "$SCENARIOS" /opt/factorio/scenarios \
|
&& ln -s "$SCENARIOS" /opt/factorio/scenarios \
|
||||||
|
Loading…
Reference in New Issue
Block a user