Docker issue #383

Closed
opened 2025-08-09 17:16:04 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @chriscooper87 on 10/4/2017

I'm facing problems when trying to run this with docker.

Mr docker file is this:

FROM microsoft/aspnetcore:2.0
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
RUN apt-get install -y build-essential nodejs
ARG source
WORKDIR /app
ENV ASPNETCORE_URLS http://*:5000
EXPOSE 5000 5001
COPY ${source:-obj/Docker/publish} .
ENTRYPOINT ["dotnet", "WebTest.dll"]

When I run it I get the following error:

Service 'webtest' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_7.x | bash -' returned a non-zero code: 1.

For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 346

Any idea what is going wrong?

Many thanks

*Originally created by @chriscooper87 on 10/4/2017* I'm facing problems when trying to run this with docker. Mr docker file is this: FROM microsoft/aspnetcore:2.0 RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - RUN apt-get install -y build-essential nodejs ARG source WORKDIR /app ENV ASPNETCORE_URLS http://*:5000 EXPOSE 5000 5001 COPY ${source:-obj/Docker/publish} . ENTRYPOINT ["dotnet", "WebTest.dll"] When I run it I get the following error: Service 'webtest' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_7.x | bash -' returned a non-zero code: 1. For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 346 Any idea what is going wrong? Many thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#383
No description provided.