fix: specify project file in dotnet restore command for clarity

This commit is contained in:
Marek Lesko
2025-10-19 17:00:33 +00:00
parent f31ead1b6d
commit dea59357c3

View File

@@ -9,7 +9,7 @@ RUN npm run build -- --output-path=dist/Web/browser
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS api-build
WORKDIR /app/api
COPY Api/ ./
RUN dotnet restore
RUN dotnet restore Api.csproj
RUN dotnet publish Api.csproj -c Release -o /app/api/build
# Final runtime image