Skip to content

Commit

Permalink
Set verbose log while building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Jan 24, 2024
1 parent 17b9c81 commit 4a920a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ WORKDIR /app
COPY . ./
RUN <<EOF
#!/bin/bash
set -v
echo "TARGETPLATFROM=$TARGETPLATFORM"
echo "BUILDPLATFORM=$BUILDPLATFORM"
if [[ "$TARGETPLATFORM" = "linux/amd64" ]]
then
echo "linux-x64"
dotnet publish NineChroniclesUtilBackend/NineChroniclesUtilBackend.csproj \
-c Release \
-r linux-x64 \
-o out \
--self-contained
elif [[ "$TARGETPLATFORM" = "linux/arm/v8" ]]
then
echo "linux-arm64"
dotnet publish NineChroniclesUtilBackend/NineChroniclesUtilBackend.csproj \
-c Release \
-r linux-arm64 \
Expand Down

0 comments on commit 4a920a4

Please sign in to comment.