From 5ab4bf70da09ef2f060f18351d066262ba27a0bf Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Sun, 29 Jan 2023 22:57:05 +0100 Subject: [PATCH] Dockerfile: [[ -> [ [[ is a bash extension and is not supported by posix sh, throwing an error. [ is supported and does enough --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5