fyf 2年前
コミット
72eb946a5b
1個のファイルの変更5行の追加5行の削除
  1. +5
    -5
      Dockerfile

+ 5
- 5
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"]
ENTRYPOINT ["dotnet", "服务API.dll"]

読み込み中…
キャンセル
保存