Fix Dockerfile: correct paths after COPY ../
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
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 everything from parent directory (src/)
|
# Copy everything from parent (src) directory
|
||||||
COPY ../ ./
|
COPY ../ ./
|
||||||
|
|
||||||
# Restore using NuGet.config in WebApi folder
|
# Now files are at:
|
||||||
|
# /src/BackOffice.BFF.sln
|
||||||
|
# /src/BackOffice.BFF.WebApi/BackOffice.BFF.WebApi.csproj
|
||||||
|
# /src/BackOffice.BFF.WebApi/NuGet.config
|
||||||
|
# etc.
|
||||||
|
|
||||||
|
# Restore using NuGet.config
|
||||||
RUN dotnet restore "BackOffice.BFF.WebApi/BackOffice.BFF.WebApi.csproj" --configfile BackOffice.BFF.WebApi/NuGet.config
|
RUN dotnet restore "BackOffice.BFF.WebApi/BackOffice.BFF.WebApi.csproj" --configfile BackOffice.BFF.WebApi/NuGet.config
|
||||||
|
|
||||||
# Build and publish
|
# Build and publish
|
||||||
|
|||||||
Reference in New Issue
Block a user