I have an app who\'s only dependency is flask, which runs fine outside docker and binds to the default port 5000. Here is the full source:
5000
from
When using the flask command instead of app.run, you can pass the --host option to change the host. The line in Docker would be:
flask
app.run
--host
CMD ["flask", "run", "--host", "0.0.0.0"]
or
CMD flask run --host 0.0.0.0