Skip to content

Commit

Permalink
fix: docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fritz (Fredrick Seitz) committed Sep 22, 2024
1 parent 0556e3b commit 8e4f861
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ RUN dotnet build "Bulwark.Auth.csproj" -c $BUILD_CONFIGURATION -o /app/build -a

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
<<<<<<< HEAD
RUN dotnet publish "Bulwark.Auth.csproj" -c $BUILD_CONFIGURATION --no-restore -o /app/publish /p:UseAppHost=false -a $TARGETARCH
=======

RUN dotnet publish "Bulwark.Auth.csproj" -c $BUILD_CONFIGURATION -o /app/publish \
--self-contained true \
/p:PublishTrimmed=true \
/p:PublishSingleFile=true -a $TARGETARCH
>>>>>>> f92b8ff (fix: use distorless multiplatform container take 9)


FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled AS final
ARG TARGETARCH
Expand Down

0 comments on commit 8e4f861

Please sign in to comment.