From 0f897af258fac426d97d5b70227005ee021c1038 Mon Sep 17 00:00:00 2001
From: haoyanbin <605649647@qq.com>
Date: Tue, 30 Apr 2024 11:06:24 +0800
Subject: [PATCH] 1

---
 Dockerfile          | 6 ++++--
 docker-compose.yaml | 2 --
 start.py            | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index e387e5e..af4765b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,10 +1,12 @@
 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
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 31afa2c..55fd33f 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -10,8 +10,6 @@ services:
     image: pyvpet-img:latest
     ports:
       - 5080:5080
-    volumes:
-      - /Users/haoyanbin/PycharmProjects/pyvpet:/pyvpet
     networks:
       - diagnosis_network
 
diff --git a/start.py b/start.py
index a051104..52d0c78 100644
--- a/start.py
+++ b/start.py
@@ -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)
-- 
2.18.1