Update Dockerfile
This commit is contained in:
@@ -7,11 +7,11 @@ EXPOSE 80
|
|||||||
FROM 10.99.253.167:8090/dotnet/sdk:7.0 AS build
|
FROM 10.99.253.167:8090/dotnet/sdk:7.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["NuGet.config", "."]
|
COPY ["NuGet.config", "."]
|
||||||
COPY ["PARR.API/PARR.API.csproj", "PARR_API/"]
|
COPY ["PARR.API/PARR.API.csproj", "PARR.API/"]
|
||||||
COPY ["PARR.DAL/PARR.DAL.csproj", "PARR.DAL/"]
|
COPY ["PARR.DAL/PARR.DAL.csproj", "PARR.DAL/"]
|
||||||
RUN dotnet restore "PARR_API/PARR.API.csproj"
|
RUN dotnet restore "PARR.API/PARR.API.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/PARR_API"
|
WORKDIR "/src/PARR.API"
|
||||||
RUN dotnet build "PARR.API.csproj" -c Release -o /app/build
|
RUN dotnet build "PARR.API.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
|
|||||||
Reference in New Issue
Block a user