📦 build(docker): specify csproj for dotnet commands
This commit is contained in:
@@ -15,8 +15,8 @@ COPY ./src/ .
|
||||
# Copy built frontend from previous stage
|
||||
COPY --from=frontend-build /app/dist /src/GreenHome.Api/wwwroot/
|
||||
|
||||
RUN dotnet restore --verbosity detailed
|
||||
RUN dotnet publish -c Release -o /app
|
||||
RUN dotnet restore GreenHome.Api/GreenHome.Api.csproj
|
||||
RUN dotnet publish GreenHome.Api/GreenHome.Api.csproj -c Release -o /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user