FORCE BuildKit to use the host network interface to clear DNS/handshake resolution

This commit is contained in:
Khwezi Mngoma
2026-06-06 00:29:49 +02:00
parent 22cc955a41
commit d80c1eab81
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ WORKDIR /app_source
COPY . . COPY . .
RUN dotnet restore "LiteCharmsSecurity.sln" RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin.Api"
RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build RUN dotnet build "LiteCharmsSecurity.Admin.Api.csproj" -c Release -o /app/build
+1 -1
View File
@@ -19,7 +19,7 @@ RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
COPY . . COPY . .
RUN dotnet restore "LiteCharmsSecurity.sln" RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
WORKDIR "/app_source/src/LiteCharmsSecurity.Admin" WORKDIR "/app_source/src/LiteCharmsSecurity.Admin"
RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build RUN dotnet build "LiteCharmsSecurity.Admin.csproj" -c Release -o /app/build
@@ -11,7 +11,7 @@ WORKDIR /app_source
COPY . . COPY . .
# Restore the solution from the root context # Restore the solution from the root context
RUN dotnet restore "LiteCharmsSecurity.sln" RUN --network=host dotnet restore "LiteCharmsSecurity.sln"
# Paths match your repository exactly now: src/ is just under the root # Paths match your repository exactly now: src/ is just under the root
WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity" WORKDIR "/app_source/src/LiteCharmsSecurity.STS.Identity"