Skip to content

Commit

Permalink
try build arm64 docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheart committed Dec 31, 2023
1 parent 6c06abf commit 333ae66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MementoMori.WebUI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["MementoMori.WebUI/MementoMori.WebUI.csproj", "MementoMori.WebUI/"]
COPY ["MementoMori.Common/MementoMori.Common.csproj", "MementoMori.Common/"]
COPY ["MementoMori.BlazorShared/MementoMori.BlazorShared.csproj", "MementoMori.BlazorShared/"]
COPY ["MementoMori/MementoMori.csproj", "MementoMori/"]
COPY ["MementoMori.Ortega/MementoMori.Ortega.csproj", "MementoMori.Ortega/"]
RUN dotnet restore "MementoMori.WebUI/MementoMori.WebUI.csproj" -p:TargetFramework=net8.0
COPY . .
WORKDIR "/src/MementoMori.WebUI"
RUN dotnet build -f net8.0 "MementoMori.WebUI.csproj" -c Release -o /app/build
RUN dotnet build -f net8.0 "MementoMori.WebUI.csproj" -c Release -o /app/build -p:TargetFramework=net8.0

FROM build AS publish
RUN dotnet publish -f net8.0 "MementoMori.WebUI.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish -f net8.0 "MementoMori.WebUI.csproj" -c Release -o /app/publish /p:UseAppHost=false -p:TargetFramework=net8.0

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit 333ae66

Please sign in to comment.