Below is my DockerFile:
FROM python:3.8.5
COPY . /usr/app/
EXPOSE 5500
WORKDIR /usr/app/
RUN pip install -r requirements.txt
CMD python app.py
I am running this container using the command "docker run -p 5500:5500 api_name
", after which I get the below message in cmd:
C:\Users\win10\Documents\ML files>docker run -p 5500:5500 api_name
- Serving Flask app "app" (lazy loading)
- Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Debug mode: on
- Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
- Restarting with stat
- Debugger is active!
- Debugger PIN: xxx-xxx-xxx
I tried accessing http://127.0.0.1:5000/ or http://127.0.0.1:5500/ but "This site can’t be reached". PS: I am using docker desktop for windows