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 d51534e commit 6c06abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MementoMori.WebUI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ COPY ["MementoMori.WebUI/MementoMori.WebUI.csproj", "MementoMori.WebUI/"]
COPY ["MementoMori.Common/MementoMori.Common.csproj", "MementoMori.Common/"]
COPY ["MementoMori/MementoMori.csproj", "MementoMori/"]
COPY ["MementoMori.Ortega/MementoMori.Ortega.csproj", "MementoMori.Ortega/"]
RUN dotnet workload restore "MementoMori.WebUI/MementoMori.WebUI.csproj" && dotnet restore "MementoMori.WebUI/MementoMori.WebUI.csproj"
RUN dotnet restore "MementoMori.WebUI/MementoMori.WebUI.csproj" -p:TargetFramework=net8.0
COPY . .
WORKDIR "/src/MementoMori.WebUI"
RUN dotnet build "MementoMori.WebUI.csproj" -c Release -o /app/build
RUN dotnet build -f net8.0 "MementoMori.WebUI.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "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

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit 6c06abf

Please sign in to comment.