hayou2002 commited on
Commit
ddc5ea5
·
verified ·
1 Parent(s): c657975

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -12,12 +12,11 @@ RUN mkdir -p /data/uploads && chmod -R 777 /data
12
  ENV OPENLIT_DATA_DIR=/data
13
  VOLUME ["/data"]
14
 
15
- # 克隆OpenLit源码
16
  RUN git clone --depth=1 https://github.com/openlit/openlit.git .
17
 
18
- # 简化依赖安装:仅安装核心依赖(避开all组的冗余组件)
19
  RUN pip install --no-cache-dir --default-timeout=300 -e .
20
- # 补充必要的运行依赖(替代all组)
21
  RUN pip install --no-cache-dir --default-timeout=300 uvicorn fastapi
22
 
23
  # HF适配启动
 
12
  ENV OPENLIT_DATA_DIR=/data
13
  VOLUME ["/data"]
14
 
15
+ # 克隆OpenLit源码到当前目录(避免子目录问题)
16
  RUN git clone --depth=1 https://github.com/openlit/openlit.git .
17
 
18
+ # 确认项目配置文件存在,执行核心依赖安装
19
  RUN pip install --no-cache-dir --default-timeout=300 -e .
 
20
  RUN pip install --no-cache-dir --default-timeout=300 uvicorn fastapi
21
 
22
  # HF适配启动