mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-30 04:30:49 +02:00
Quote all vars in Dockerfile (#259)
This commit is contained in:
parent
045ef7a214
commit
ee5b023911
@ -16,26 +16,26 @@ ENV PORT=34197 \
|
|||||||
MODS=/factorio/mods \
|
MODS=/factorio/mods \
|
||||||
SCENARIOS=/factorio/scenarios \
|
SCENARIOS=/factorio/scenarios \
|
||||||
SCRIPTOUTPUT=/factorio/script-output \
|
SCRIPTOUTPUT=/factorio/script-output \
|
||||||
PUID=$PUID \
|
PUID="$PUID" \
|
||||||
PGID=$PGID
|
PGID="$PGID"
|
||||||
|
|
||||||
RUN mkdir -p /opt /factorio && \
|
RUN mkdir -p /opt /factorio && \
|
||||||
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow && \
|
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow && \
|
||||||
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" \
|
||||||
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
||||||
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \
|
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \
|
||||||
tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \
|
tar xf "/tmp/factorio_headless_x64_$VERSION.tar.xz" --directory /opt && \
|
||||||
chmod ugo=rwx /opt/factorio && \
|
chmod ugo=rwx /opt/factorio && \
|
||||||
rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
rm "/tmp/factorio_headless_x64_$VERSION.tar.xz" && \
|
||||||
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 && \
|
||||||
ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \
|
ln -s "$SCRIPTOUTPUT" /opt/factorio/script-output && \
|
||||||
apk del .build-deps && \
|
apk del .build-deps && \
|
||||||
addgroup -g $PGID -S $GROUP && \
|
addgroup -g "$PGID" -S "$GROUP" && \
|
||||||
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
adduser -u "$PUID" -G "$GROUP" -s /bin/sh -SDH "$USER" && \
|
||||||
chown -R $USER:$GROUP /opt/factorio /factorio
|
chown -R "$USER":"$GROUP" /opt/factorio /factorio
|
||||||
|
|
||||||
VOLUME /factorio
|
VOLUME /factorio
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user