Skip to content

Commit

Permalink
fixing docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Dec 9, 2024
1 parent 204e968 commit 5262e55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<RunAOTCompilation>true</RunAOTCompilation>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0 " />
Expand Down
2 changes: 1 addition & 1 deletion src/CleanAspire.ClientApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN dotnet workload install wasm-tools --skip-manifest-update

# Copy the entire source code and build the application in Release mode
COPY . .
RUN dotnet publish -c Release -o /app/publish /p:RunAOTCompilation=true
RUN dotnet publish -c Release -o /app/publish -v diag

# Stage 2: Serve the Blazor Client Application using Nginx
FROM nginx:alpine AS final
Expand Down

0 comments on commit 5262e55

Please sign in to comment.