Giter Site home page Giter Site logo

Comments (3)

amolenk avatar amolenk commented on May 22, 2024

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.

ozcano1 avatar ozcano1 commented on May 22, 2024

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.

amolenk avatar amolenk commented on May 22, 2024

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

from eshopondapr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.