How can I access a docker container direct from host

Small addition to @rimelek’s post:

Please read this post to get a better understanding of what should be in the same container or separated into different containers:

Update:
I think the confusion comes from how the Dockerfile works. Is it safe to assume that you expect the three stages to be merged into the final image? Unfortunately this is not how it works.

It looks like you try to do a multi-stage build, but end up without an image hierarchy or copying artifacts from previous stages.

See docs for multi-stage builds: