Fix Dockerfile: don't copy test csproj (excluded by .dockerignore)
This commit is contained in:
@@ -3,9 +3,7 @@
|
|||||||
# ---- Backend build ----
|
# ---- Backend build ----
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY Assistant.sln ./
|
|
||||||
COPY backend/backend.csproj backend/
|
COPY backend/backend.csproj backend/
|
||||||
COPY backend.tests/backend.tests.csproj backend.tests/
|
|
||||||
RUN dotnet restore backend/backend.csproj
|
RUN dotnet restore backend/backend.csproj
|
||||||
COPY backend/ backend/
|
COPY backend/ backend/
|
||||||
RUN dotnet publish backend/backend.csproj -c Release -o /publish
|
RUN dotnet publish backend/backend.csproj -c Release -o /publish
|
||||||
|
|||||||
Reference in New Issue
Block a user