From 15e06ba218d65d8aa4b47b5532f4d13cfa158034 Mon Sep 17 00:00:00 2001 From: Michael Hallock Date: Fri, 22 Oct 2021 23:18:03 -0400 Subject: [PATCH] Trying to get version to work in Docker file --- src/Dockerfile | 2 +- src/Dockerfile.arm32 | 2 +- src/Dockerfile.arm64 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 1e2dce8..9267e15 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -10,7 +10,7 @@ RUN dotnet restore # copy and build everything else COPY HomeAutio.Mqtt.Harmony/. ./HomeAutio.Mqtt.Harmony/ -RUN dotnet build -c Release /p:Version=${VERSION} +RUN dotnet build --configuration Release /p:Version=$VERSION # publish FROM build AS publish diff --git a/src/Dockerfile.arm32 b/src/Dockerfile.arm32 index 6432508..a01eab0 100644 --- a/src/Dockerfile.arm32 +++ b/src/Dockerfile.arm32 @@ -10,7 +10,7 @@ RUN dotnet restore # copy and build everything else COPY HomeAutio.Mqtt.Harmony/. ./HomeAutio.Mqtt.Harmony/ -RUN dotnet build -c Release /p:Version=${VERSION} +RUN dotnet build --configuration Release /p:Version=$VERSION # publish FROM build AS publish diff --git a/src/Dockerfile.arm64 b/src/Dockerfile.arm64 index 7405d46..86e2221 100644 --- a/src/Dockerfile.arm64 +++ b/src/Dockerfile.arm64 @@ -10,7 +10,7 @@ RUN dotnet restore # copy and build everything else COPY HomeAutio.Mqtt.Harmony/. ./HomeAutio.Mqtt.Harmony/ -RUN dotnet build -c Release /p:Version=${VERSION} +RUN dotnet build --configuration Release /p:Version=$VERSION # publish FROM build AS publish