In an earlier post, i showed how you could publish a .net core app, i thought i'd update that so you could run it in docker.
FROM microsoft/dotnet:latest COPY . /app WORKDIR /app RUN ["dotnet", "restore"] RUN ["dotnet", "build"] RUN ["dotnet", "publish"] WORKDIR bin/Debug/netcoreapp1.0/publish/ ENTRYPOINT ["dotnet", "hellooo.dll"]
All you need to do now is build it
docker build -t chrishayuk/hellooo .
And run it
docker run chrishayuk/helloooo