Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Dec 9, 2024
1 parent a07da4d commit 71bff47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CleanAspire.ClientApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ WORKDIR /src
COPY ["src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj", "src/CleanAspire.ClientApp/"]
RUN dotnet restore "src/CleanAspire.ClientApp/CleanAspire.ClientApp.csproj"

# Install wasm-tools for AOT
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

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

0 comments on commit 71bff47

Please sign in to comment.