fix dockerfile
Some checks failed
Restart Docker Container on Production / build (pull_request) Failing after 1m46s

This commit is contained in:
iTob 2024-09-20 10:16:02 +02:00
parent d7e614fbd6
commit e10e7f3c85

View File

@ -7,8 +7,8 @@ EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["../../RBLNews.Web/RBLNews.Shared.csproj", "RBLNews.Shared/"]
RUN dotnet restore "RBLFeeder/RBLNews.Web.csproj"
COPY ["../../RBLNews.Shared/RBLNews.Shared.csproj", "RBLNews.Shared/"]
RUN dotnet restore "RBLNews/RBLNews.Web.csproj"
COPY . .
WORKDIR "/src/RBLNews.Web"
RUN dotnet build "RBLNews.Web.csproj" -c $BUILD_CONFIGURATION -o /app/build