fix: adjust Dockerfile to copy all API files before restoring dependencies
This commit is contained in:
@@ -8,9 +8,8 @@ RUN npm run build -- --output-path=dist/Web/browser
|
||||
# Build .NET Api app
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS api-build
|
||||
WORKDIR /app/api
|
||||
COPY Api/*.csproj ./
|
||||
RUN dotnet restore
|
||||
COPY Api/ ./
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish Api.csproj -c Release -o /app/api/build
|
||||
|
||||
# Final runtime image
|
||||
|
||||
Reference in New Issue
Block a user