hayou2002 commited on
Commit
83c0efc
·
verified ·
1 Parent(s): 76d3264

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -19,11 +19,4 @@ ENV OPENLIT_DATA_DIR=/data
19
  VOLUME ["/data"]
20
 
21
  # 步骤6:克隆OpenLit最新源码(HF国外服务器访问GitHub无压力)
22
- RUN git clone --depth=1 https://github.com/openlit/openlit.git .
23
-
24
- # 步骤7:安装Python依赖(直接安装,避免复杂参数)
25
- RUN pip install --no-cache-dir -e .[all]
26
-
27
- # 步骤8:HF强制适配(端口+地址)
28
- EXPOSE 7860
29
- CMD ["openlit", "serve", "--host", "0.0.0.0", "--port", "7860", "--root-path", "/v1"]
 
19
  VOLUME ["/data"]
20
 
21
  # 步骤6:克隆OpenLit最新源码(HF国外服务器访问GitHub无压力)
22
+ RUN git clone --depth=1 https://github.com/openlit/openlit.git .