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