From 6bac1630e5af5890a6922bdc624e591eb19a12eb Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期四, 13 三月 2025 18:36:07 +0800 Subject: [PATCH] 知识库对接rg --- 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