From 895120562d4d230261b56ba6c4b176d5f6a1b8d8 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 27 Mar 2023 03:14:50 +0300 Subject: [PATCH] api dockerfile update --- src/api/NetworkResurrector.Api/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api/NetworkResurrector.Api/Dockerfile b/src/api/NetworkResurrector.Api/Dockerfile index a4511d8..fddb1a2 100644 --- a/src/api/NetworkResurrector.Api/Dockerfile +++ b/src/api/NetworkResurrector.Api/Dockerfile @@ -6,9 +6,10 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build WORKDIR /src -COPY dependencies.props . -COPY Directory.Build.props . -COPY NuGet.config . +COPY ["dependencies.props", "."] +COPY ["Directory.Build.props", "."] +COPY ["NuGet.config", "."] +COPY ["ReleaseNotes.xml", "."] COPY ["src/api/NetworkResurrector.Api/NetworkResurrector.Api.csproj", "NetworkResurrector.Api/"] COPY ["src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj", "NetworkResurrector.Api.Application/"] COPY ["src/api/NetworkResurrector.Api.PublishedLanguage/NetworkResurrector.Api.PublishedLanguage.csproj", "NetworkResurrector.Api.PublishedLanguage/"] @@ -20,7 +21,7 @@ WORKDIR "/src/NetworkResurrector.Api" RUN dotnet build "NetworkResurrector.Api.csproj" -c Release -o /app/build FROM build AS publish -RUN dotnet publish "NetworkResurrector.Api.csproj" -c Release -o /app/publish +RUN dotnet publish "NetworkResurrector.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app