From 72eb946a5be861b27637a497c8c9aa2147ad6643 Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 30 Apr 2022 14:05:38 +0800 Subject: [PATCH] 1 --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2c4784..f68be32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,16 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["NuGet.config", "."] -COPY ["DataV/DataV.csproj", "DataV/"] -RUN dotnet restore "DataV/DataV.csproj" --configfile "NuGet.config" +COPY ["服务API/服务API.csproj", "服务API/"] +RUN dotnet restore "服务API/服务API.csproj" --configfile "NuGet.config" COPY . . WORKDIR "/src/DataV" -RUN dotnet build "DataV.csproj" -c Release -o /app/build +RUN dotnet build "服务API.csproj" -c Release -o /app/build FROM build AS publish -RUN dotnet publish "DataV.csproj" -c Release -o /app/publish +RUN dotnet publish "服务API.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "DataV.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "服务API.dll"] \ No newline at end of file