JavaScriptServices icon indicating copy to clipboard operation
JavaScriptServices copied to clipboard

Docker issue

Open chriscooper87 opened this issue 9 years ago • 1 comments

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

chriscooper87 avatar Oct 04 '17 20:10 chriscooper87

using the following image resolved this for me:

FROM microsoft/dotnet:2.0.0-runtime-jessie

chriscooper87 avatar Oct 04 '17 22:10 chriscooper87