Skip to content

Commit

Permalink
[accountingservice] fix-build-targetarch (#1805)
Browse files Browse the repository at this point in the history
* accountingservice-fix-build-targetarch

* Update src/accountingservice/Dockerfile

Co-authored-by: Matt Martyn <MMartyn@gmail.com>

---------

Co-authored-by: Matt Martyn <MMartyn@gmail.com>
  • Loading branch information
julianocosta89 and MMartyn authored Dec 3, 2024
1 parent 044de6d commit 65e6441
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/accountingservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ RUN dotnet build "./AccountingService.csproj" -r linux-musl-$TARGETARCH -c $BUIL
# -----------------------------------------------------------------------------

FROM builder AS publish
ARG TARGETARCH
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./AccountingService.csproj" --use-current-runtime -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./AccountingService.csproj" -r linux-musl-$TARGETARCH --use-current-runtime -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

# -----------------------------------------------------------------------------

Expand Down

0 comments on commit 65e6441

Please sign in to comment.