Try to show the result online in docker with dotnet try- part 7
Trying to put the dotnet try in docker
Each line from here is taking time – save this as docker.console file
FROM mcr.microsoft.com/dotnet/core/sdk:3.0
RUN dotnet tool install -g –add-source “https://dotnet.myget.org/F/dotnet-try/api/v3/index.json” dotnet-try
ENV PATH=”$PATH:/root/.dotnet/tools”
#ENV ASPNETCORE_URLS=http://+:5000
CMD dotnet try –verbose –port 443
EXPOSE 443
I can run this by
docker build -f ./console.docker . -t drop
docker run –rm -it -p 5000:5000/tcp drop:latest
However , I cannot find a way to see the output of the dotnet try in the browser.
( Problem show below) .Raised a feature request
https://github.com/dotnet/try/issues/590
So spent time, but not happy ending
Infovalutar
And one hour passes...(This is the result of 1 hour per day auto-challenge as a full cycle developer for an exchange rates application)
( You can see the sources at https://github.com/ignatandrei/InfoValutar/ )
Leave a Reply