Docker issue
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
using the following image resolved this for me:
FROM microsoft/dotnet:2.0.0-runtime-jessie