From 8bdc8ec7839ea8036d6cb91514ad000e545d9205 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 23 十月 2024 23:31:22 +0800
Subject: [PATCH] 删除无用配置,mysql配置支持从环境变量读取,更改dockerfile, 完善readme

---
 Dockerfile |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 3749a2d..234c792 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,14 +1,12 @@
 FROM python:3.11
-
-# 瀹夎 PyInstaller
-RUN pip install pyinstaller
-
-# 澶嶅埗椤圭洰鏂囦欢鍒板鍣ㄤ腑
-COPY . /app
+ 
+# 璁剧疆宸ヤ綔鐩綍
 WORKDIR /app
+ 
+# copy鏂囦欢鍒板鍣�
+COPY . /app
 
-# 瀹夎椤圭洰渚濊禆
-RUN pip install -r requirements.txt
+RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
 
-# 浣跨敤 PyInstaller 鎵撳寘搴旂敤锛屽苟纭繚鏂囦欢琚鍒跺埌 dist 鐩綍
-RUN pyinstaller -F main.py
\ No newline at end of file
+# 鍚姩鍛戒护
+CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9201"]
\ No newline at end of file

--
Gitblit v1.8.0