From 7a14bea3aa54e889524620efea074fa583e7de41 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期五, 22 十一月 2024 17:31:02 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway --- 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