Update Dockerfile
Browse files- 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 |
-
#
|
| 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适配启动
|