-
Image always expose port 80 regardless PORT, BIND environment variables settings.
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Have you tried setting these on your dockerfile: ENV LISTEN_PORT 5000
EXPOSE 5000 |
Beta Was this translation helpful? Give feedback.
-
Yes. It have a same result. |
Beta Was this translation helpful? Give feedback.
-
I just checked some internal project dockerfile and noticed I am not using You can give it a try. |
Beta Was this translation helpful? Give feedback.
-
It will have same result. The image have expose default http port that can be unused in next stages. It's no critical but add misleads to containers list. |
Beta Was this translation helpful? Give feedback.
-
So what's the solution? |
Beta Was this translation helpful? Give feedback.
-
docker run -p 3004:3004 -e PORT="3004" -e MODULE_NAME="app" myimage it works. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the patience with my reply! 🤓 I just removed |
Beta Was this translation helpful? Give feedback.
Thanks for the patience with my reply! 🤓
I just removed
EXPOSE 80
in the base image for this (tiangolo/meinheld-gunicorn-docker#128). 🚀