From d5e7b8b95d4597c31927bdc728841dc09eb42801 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Thu, 10 Jul 2025 18:21:55 -0700 Subject: [PATCH] Fix bad if command --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33424ff..fa8a6ef 100755 --- a/Dockerfile +++ b/Dockerfile @@ -43,12 +43,12 @@ COPY ./src/MistoxWebsite.Server/ ./ ARG TARGETOS TARGETARCH # Build the source -RUN if [ $TARGETARCH = "arm64" ]; then \ +RUN if [ "$TARGETARCH" = "arm64" ]; then \ RID="arm64" \ - elif [ "$TARGETARCHARCH" = "amd64" ]; then \ + elif [ "$TARGETARCH" = "amd64" ]; then \ RID="x64" \ else \ - echo "Unsupported ARCH: $ARCH" \ + echo "Unsupported ARCH: $TARGETARCH" \ exit 1 \ fi && \ dotnet publish './MistoxWebsite.Server.csproj' -c Release -r $TARGETOS-$RID -o /app/publish