Comments (3)
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.
from eshopondapr.
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
from eshopondapr.
Latest version does not restore any NPM packages anymore, so you shouldn't run into this issue anymore
from eshopondapr.
Related Issues (20)
- Error when running in visual studio HOT 1
- Image deployment in container app HOT 1
- An unhandled error has occurred. Reload HOT 2
- Suggestion: A true Enterprise Architecture Sample
- ystem.AggregateException: One or more errors occurred HOT 1
- Blazor dlls blocked by Sophos HOT 2
- Azure Container Apps Missing SecretStore HOT 2
- buildingblocks.png HOT 2
- "BlazorClient" VS "BlazorClient.Host"
- Why no Azure DevOps pipeline
- How to generate migration files? HOT 2
- How to atomically persist state and send events (e.g. ProductPriceChangedIntegrationEvent) ?
- Error: eshop-secrets.json in dapr self hosted mode and kubernets HOT 1
- Bad practices in Bicep files
- Error when starting with Docker-compose from visual studio. HOT 1
- failed to run "Run eShopOnDapr on a local Kubernetes cluster using Docker for Desktop" on my docker desktop on mac
- The scope in the docker image is wrong, and the image source of docker compose should be indicated
- A duplicate key 'release' was found in the secret store 'eshopondapr-secretstore'. Please remove any duplicates from your secret store (GitOps)
- Update to .NET 8
- Dapr sidecar is unhealthy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eshopondapr.