From: miniduikboot Date: Sun, 29 Jan 2023 21:57:05 +0000 (+0100) Subject: Dockerfile: [[ -> [ X-Git-Tag: v1.8.1~3^2~3 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=5ab4bf70da09ef2f060f18351d066262ba27a0bf;p=rhonda%2Fimpostor.git Dockerfile: [[ -> [ [[ is a bash extension and is not supported by posix sh, throwing an error. [ is supported and does enough --- diff --git a/Dockerfile b/Dockerfile index 080a1ea..34f9b04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ RUN case "$TARGETARCH" in \ arm) NETCORE_PLATFORM='linux-arm';; \ *) echo "unsupported architecture"; exit 1 ;; \ esac && \ - [[ $VERSIONSUFFIX = "none" ]] && VERSIONSUFFIX=; \ + [ $VERSIONSUFFIX = "none" ] && VERSIONSUFFIX=; \ dotnet publish -c release -o /app -r "$NETCORE_PLATFORM" -p:VersionSuffix="$VERSIONSUFFIX" --no-restore ./src/Impostor.Server/Impostor.Server.csproj # Final image.