8000 cartservice service: docker image build failing · Issue #3157 · GoogleCloudPlatform/microservices-demo · GitHub
[go: up one dir, main page]

Skip to content

cartservice service: docker image build failing #3157

@rahulk010

Description

@ra
6E0F
hulk010

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0