Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Service 'webspa' failed to build: The command '/bin/sh -c curl ... #36

Closed
ozcano1 opened this issue Mar 5, 2021 · 3 comments
Closed

Comments

@ozcano1
Copy link

ozcano1 commented Mar 5, 2021

Hello

I am receiving following error both from CLI and Visual Studio F5 run. Would you be able to direct me please?

My setup is:
Windows 10 Pro Version 1607
Microsoft Visual Studio Enterprise 2019 Preview Version 16.10.0 Preview 1.0
Docker Desktop Version 2.0.0.3 (31259) Build: 8858db3 (Linux Containers)

Regard

Özcan Öz

Populating apt-get cache...

@amolenk
Copy link
Collaborator

amolenk commented Mar 8, 2021

Looks like your machine has trouble connecting to the apt-get repository server. Are you using a VPN or some other proxy? It could also have been a temporary error on the server side.

@ozcano1 ozcano1 closed this as completed Mar 26, 2021
@ozcano1 ozcano1 reopened this Mar 26, 2021
@ozcano1
Copy link
Author

ozcano1 commented Mar 26, 2021

Hello
After some investigation I changed Dockerfile like this:

ARG NODE_IMAGE=node:12.0
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
WORKDIR /app
EXPOSE 80
ENV http_proxy=http://xxx
ENV https_proxy=http://xxx
RUN apt-get update
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get update
RUN apt-get install -y nodejs

But this time I received error at the last line like this:

5>#7 [base 4/6] RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
5>#7 sha256:2413cb8ebd8d3f553f02ea9ca235af01c2afdcd44f66d8fad3c28404b412187a
5>#7 CACHED
5>#8 [base 5/6] RUN apt-get update
5>#8 sha256:61ea4a5fca39939e584b201df2c4f6b7e00343a1bd16c24b9c89ea4f167e99e2
5>#8 CACHED
5>#9 [base 6/6] RUN apt-get install -y nodejs
5>#9 sha256:4a56acd49c1b55b70229487950599672bdd2fd57247005f244ccf7e85fa8e76d
5>#9 0.312 Reading package lists...
5>#9 0.318 Building dependency tree...
5>#9 0.318 Reading state information...
5>#9 0.319 E: Unable to locate package nodejs
5>#9 ERROR: executor failed running [/bin/sh -c apt-get install -y nodejs]: exit code: 100
5>------
5> > [base 6/6] RUN apt-get install -y nodejs:
5>------
5>executor failed running [/bin/sh -c apt-get install -y nodejs]: exit code: 100
5>Service 'webspa' failed to build
5>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(394,5): error DT1001: Service 'webspa' failed to build
5>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets(394,5): error DT1001: If the error persists, try restarting Docker Desktop.
5>Done building project "docker-compose.dcproj" -- FAILED.
========== Build: 4 succeeded, 1 failed, 7 up-to-date, 0 skipped ==========

I will be glad if you could direct me. It does not seem to be proxy issue this time (But, Yes I am behind a firewall)

Regards

@amolenk
Copy link
Collaborator

amolenk commented Oct 19, 2021

Latest version does not restore any NPM packages anymore, so you shouldn't run into this issue anymore

@amolenk amolenk closed this as completed Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants