File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ WORKDIR /src
99ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
1010ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
1111ENV NUGET_XMLDOC_MODE=skip
12+ # Configure .NET to handle SSL issues in Docker environment
13+ ENV DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
14+ ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
15+
16+ # Install ca-certificates and update certificate store
17+ RUN apt-get update && \
18+ apt-get install -y ca-certificates && \
19+ update-ca-certificates && \
20+ rm -rf /var/lib/apt/lists/*
1221
1322# Copy solution file and project files for dependency resolution
1423COPY ["NLWebNet.sln" , "./" ]
@@ -18,8 +27,10 @@ COPY ["src/NLWebNet/NLWebNet.csproj", "src/NLWebNet/"]
1827COPY ["samples/Demo/NLWebNet.Demo.csproj" , "samples/Demo/" ]
1928COPY ["tests/NLWebNet.Tests/NLWebNet.Tests.csproj" , "tests/NLWebNet.Tests/" ]
2029
21- # Restore dependencies
22- RUN dotnet restore "samples/Demo/NLWebNet.Demo.csproj"
30+ # Restore dependencies with retry and improved networking
31+ RUN dotnet restore "samples/Demo/NLWebNet.Demo.csproj" \
32+ --verbosity normal \
33+ --force
2334
2435# Copy source code
2536COPY . .
You can’t perform that action at this time.
0 commit comments