From 808f59230044e1362a94325be460c0b1b4bb33a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Pilgaard=20Gr=C3=B8ndahl?= Date: Fri, 4 Aug 2023 22:23:21 +0200 Subject: [PATCH] Update Dockerfile --- src/container_apps/Jordnaer.Chat/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/container_apps/Jordnaer.Chat/Dockerfile b/src/container_apps/Jordnaer.Chat/Dockerfile index 5d0706bf..214c4546 100644 --- a/src/container_apps/Jordnaer.Chat/Dockerfile +++ b/src/container_apps/Jordnaer.Chat/Dockerfile @@ -10,9 +10,8 @@ WORKDIR /src COPY ["Directory.Build.props", "."] COPY ["src/container_apps/Jordnaer.Chat/Jordnaer.Chat.csproj", "Jordnaer.Chat/"] RUN dotnet restore "Jordnaer.Chat/Jordnaer.Chat.csproj" -COPY . . -WORKDIR "/src/Jordnaer.Chat" -RUN dotnet build "Jordnaer.Chat.csproj" -c Release -o /app/build +COPY [".", "Jordnaer.Chat/"] +RUN dotnet build "Jordnaer.Chat/Jordnaer.Chat.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "Jordnaer.Chat.csproj" -c Release -o /app/publish /p:UseAppHost=false