I'm trying to run an .NET Core app on my mac. I'm using VS Core and upgraded the project to .NET 1.1. Everything works fine when I run it through VSCode however when I get to run it using Docker it fails.
I do the following steps:
dotnet publish -c Release -o out
docker build -t myApp .
The Dockerfile looks like this:
FROM microsoft/dotnet:1.1.0-preview1-runtime
WORKDIR /service
COPY out ./service/
ENTRYPOINT ["dotnet", "myApp.dll"]
Essentially I'm following the steps from https://github.com/dotnet/dotnet-docker . I'm getting all the time the following error:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
I'm not sure what I am missing here...
dotnet
was probably not seeing the dll you were specifying and assuming you were trying to run one of the SDK commands. – Roman