diff --git a/ShowcaseProject/ShowcaseFrontend/Dockerfile b/ShowcaseProject/ShowcaseFrontend/Dockerfile index 4611140..6b1d457 100644 --- a/ShowcaseProject/ShowcaseFrontend/Dockerfile +++ b/ShowcaseProject/ShowcaseFrontend/Dockerfile @@ -1,16 +1,17 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dev WORKDIR /app -COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/ -RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj + +COPY . . +RUN dotnet restore ./ShowcaseFrontend//ShowcaseFrontend.csproj + COPY ShowcaseFrontend/. ShowcaseFrontend/ WORKDIR /app/ShowcaseFrontend CMD ["dotnet", "watch", "run", "--no-launch-profile", "--urls", "http://0.0.0.0:80"] FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src -COPY ShowcaseFrontend/ShowcaseFrontend.csproj ShowcaseFrontend/ -RUN dotnet restore ShowcaseFrontend/ShowcaseFrontend.csproj -COPY ShowcaseFrontend/. ShowcaseFrontend/ +COPY . . +RUN dotnet restore ./ShowcaseFrontend/ShowcaseFrontend.csproj WORKDIR /src/ShowcaseFrontend RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false