Reputation: 789
I'm starting to develop in dotnet, and made a simple project following this link tutorial http://www.macoratti.net/19/01/aspn_lnxsite1.htm
Then I went to do the part of launching a docker and followed the steps http://www.macoratti.net/19/01/intro_docker7.htm
However when giving the command docker container start MvcContainer
it appears the name of my container, but when accessing the route https://localhost:3000 does not load anything
my version of dotnet is 3.1.100
This is the configuration of my Dockerfile:
FROM microsoft/dotnet:2.1-aspnetcore-runtime
LABEL version="1.0.1" description="Aplicacao ASP .NET Core MVC"
COPY dist /app
WORKDIR /app
EXPOSE 80/tcp
ENTRYPOINT ["dotnet","App1.dll"]
Does anyone know what I did wrong? or how can I find out what's going wrong?
Upvotes: 0
Views: 44
Reputation: 419
Build:
docker build -t aspnetcoremvc/app1:1.0 .
Run:
docker run -d -p <host port>:<container port> <image name>
docker run -d -p 3000:80 aspnetcoremvc/app1:1.0
For https endpoint you need to have certificates https://docs.docker.com/ee/ucp/interlock/usage/tls/
Upvotes: 1