iridescent commited on
Commit
37a74f8
·
1 Parent(s): 4a07037

🐞 fix: 在 Dockerfile 中安装 llama.cpp 运行时所需的共享库

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -31,6 +31,9 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
31
  # 使用一个干净、轻量的镜像作为最终的运行环境
32
  FROM python:3.12-slim as final
33
 
 
 
 
34
  # 设置 Hugging Face 的缓存目录
35
  ENV HF_HOME=/data
36
  # 设置工作目录
 
31
  # 使用一个干净、轻量的镜像作为最终的运行环境
32
  FROM python:3.12-slim as final
33
 
34
+ # 安装 llama.cpp 运行时所需的共享库
35
+ RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 && rm -rf /var/lib/apt/lists/*
36
+
37
  # 设置 Hugging Face 的缓存目录
38
  ENV HF_HOME=/data
39
  # 设置工作目录