From 11b1a43095e602b70f2f25d2c7250f5cf136f399 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Tue, 24 Sep 2024 01:42:39 +0200 Subject: [PATCH] Update Dockerfile --- WatchIt.Website/WatchIt.Website/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WatchIt.Website/WatchIt.Website/Dockerfile b/WatchIt.Website/WatchIt.Website/Dockerfile index 1c2192d..5edbd87 100644 --- a/WatchIt.Website/WatchIt.Website/Dockerfile +++ b/WatchIt.Website/WatchIt.Website/Dockerfile @@ -7,9 +7,8 @@ EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src -COPY ["WatchIt.Website/WatchIt.Website/WatchIt.Website.csproj", "WatchIt.Website/WatchIt.Website/"] +COPY [".", "/src"] RUN dotnet restore "WatchIt.Website/WatchIt.Website/WatchIt.Website.csproj" -COPY . . WORKDIR "/src/WatchIt.Website/WatchIt.Website" RUN dotnet build "WatchIt.Website.csproj" -c $BUILD_CONFIGURATION -o /app/build