diff --git a/src/LiteCharmsSecurity.Admin.Api/Dockerfile b/src/LiteCharmsSecurity.Admin.Api/Dockerfile index 34afa97..02f352d 100644 --- a/src/LiteCharmsSecurity.Admin.Api/Dockerfile +++ b/src/LiteCharmsSecurity.Admin.Api/Dockerfile @@ -9,8 +9,7 @@ WORKDIR /app_source COPY . . -RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true -RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG +RUN dotnet restore "LiteCharmsSecurity.sln" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api" RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build diff --git a/src/LiteCharmsSecurity.Admin/Dockerfile b/src/LiteCharmsSecurity.Admin/Dockerfile index d5790ee..0767e86 100644 --- a/src/LiteCharmsSecurity.Admin/Dockerfile +++ b/src/LiteCharmsSecurity.Admin/Dockerfile @@ -18,8 +18,7 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ COPY . . -RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true -RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG +RUN dotnet restore "LiteCharmsSecurity.sln" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin" RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build diff --git a/src/LiteCharmsSecurity.STS.Identity/Dockerfile b/src/LiteCharmsSecurity.STS.Identity/Dockerfile index 8f08e67..d682f42 100644 --- a/src/LiteCharmsSecurity.STS.Identity/Dockerfile +++ b/src/LiteCharmsSecurity.STS.Identity/Dockerfile @@ -9,8 +9,7 @@ WORKDIR /app_source COPY . . -RUN --network=host dotnet restore "LiteCharmsSecurity.sln" > /tmp/error.txt 2>&1 || true -RUN export ERR_MSG=$(cat /tmp/error.txt | head -n 5) && false $ERR_MSG +RUN dotnet restore "LiteCharmsSecurity.sln" WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity" RUN dotnet build "LiteCharmsSecurity.STS.Identity.csproj" -c Release -o /app/build