I have a .net Core 2.1 console application and I want to build it into a docker container that will be deployed to Linux (Alpine).
If this had an output on windows of an exe (and was self-contained of course). My docker file might look like this:
COPY /output/ /bin/
CMD ["/bin/sample.exe"]
As I want to make this a portable app (and have .net Core Runtime on the Linux box already), should my docker file look like this:
FROM microsoft/dotnet:2.1-runtime
COPY /output/ /bin/
CMD ["dotnet", "/bin/sample.dll"]
Thanks for any advice in advance!