-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Open
Description
I'm trying to build cartservice docker image using Dockerfile but it's failing at dotnet restore step. Has anyone tried creating image using this Dockerfile lately?
#11 [builder 4/6] RUN dotnet restore cartservice.csproj -a amd64
#11 1.316 Determining projects to restore...
#11 607.2 /app/cartservice.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
#11 607.2 /app/cartservice.csproj : error NU1301: The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.
#11 607.3 Failed to restore /app/cartservice.csproj (in 10.09 min).
#11 ERROR: process "/bin/sh -c dotnet restore cartservice.csproj -a $TARGETARCH" did not complete successfully: exit code: 1
------
> [builder 4/6] RUN dotnet restore cartservice.csproj -a amd64:
1.316 Determining projects to restore...
607.2 /app/cartservice.csproj : error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
607.2 /app/cartservice.csproj : error NU1301: The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.
607.3 Failed to restore /app/cartservice.csproj (in 10.09 min).
------
Dockerfile:20
--------------------
19 | COPY cartservice.csproj .
20 | >>> RUN dotnet restore cartservice.csproj \
21 | >>> -a $TARGETARCH
22 | COPY . .
--------------------
ERROR: failed to solve: process "/bin/sh -c dotnet restore cartservice.csproj -a $TARGETARCH" did not complete successfully: exit code: 1
exit status 1
Metadata
Metadata
Assignees
Labels
No labels