Commit 0f897af2 authored by haoyanbin's avatar haoyanbin

1

parent 9c1e3e15
FROM python:3.8
WORKDIR /app
ADD ./ /app
COPY . /app
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/
EXPOSE 5080
# CMD ["gunicorn", "start:app", "-c", "./gunicorn.conf.py"]
CMD ["python", "start.py"]
\ No newline at end of file
......@@ -10,8 +10,6 @@ services:
image: pyvpet-img:latest
ports:
- 5080:5080
volumes:
- /Users/haoyanbin/PycharmProjects/pyvpet:/pyvpet
networks:
- diagnosis_network
......
......@@ -3,4 +3,4 @@ from app import create_app
app = create_app()
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