Commit 0f897af2 authored by haoyanbin's avatar haoyanbin

1

parent 9c1e3e15
FROM python:3.8 FROM python:3.8
WORKDIR /app WORKDIR /app
ADD ./ /app COPY . /app
RUN python -m pip install --upgrade pip RUN python -m pip install --upgrade pip
COPY requirements.txt ./ #COPY requirements.txt ./app
RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
EXPOSE 5080
# CMD ["gunicorn", "start:app", "-c", "./gunicorn.conf.py"] # CMD ["gunicorn", "start:app", "-c", "./gunicorn.conf.py"]
CMD ["python", "start.py"] CMD ["python", "start.py"]
\ No newline at end of file
...@@ -10,8 +10,6 @@ services: ...@@ -10,8 +10,6 @@ services:
image: pyvpet-img:latest image: pyvpet-img:latest
ports: ports:
- 5080:5080 - 5080:5080
volumes:
- /Users/haoyanbin/PycharmProjects/pyvpet:/pyvpet
networks: networks:
- diagnosis_network - diagnosis_network
......
...@@ -3,4 +3,4 @@ from app import create_app ...@@ -3,4 +3,4 @@ from app import create_app
app = create_app() app = create_app()
if __name__ == '__main__': if __name__ == '__main__':
app.run(port=5080, debug=True) app.run(host='0.0.0.0', port=5080, debug=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment