mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 02:18:22 +01:00
Apply shell-format
This commit is contained in:
parent
5d997bf1c7
commit
e5f34134f7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user