I have a Dot net application when run locally it launches on url http://localhost:59901, and I am trying to dockerize this application. below is the docker file, I have pulled all the dependent images before these line in docker file.
ENV DOTNET_URLS=http:
COPY bin/Release/netcoreapp2.1/publish/ /opt/Pcit/common
WORKDIR /opt/Pcit/common
ENTRYPOINT ["./pcit/common"]
EXPOSE 8080
have build the docker Image using this command
Docker build -t common:v1 .
and below command to run container
Docker run -p 8080:8080 imageid
in the Docker desktop I see the container is listening to http://localhost/5000, which I have not declared anywhere
and when I try to browse, its not working as expected
I am confused by how these ports work and how I can make this container work.
Please help. Thanks in Advance.
What I have tried:
<pre>ENV DOTNET_URLS=http:
COPY bin/Release/netcoreapp2.1/publish/ /opt/Pcit/common
WORKDIR /opt/Pcit/common
ENTRYPOINT ["./pcit/common"]
EXPOSE 8080
<pre>Docker build -t common:v1 .
<pre>Docker run -p 8080:8080 imageid