Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -19,10 +19,16 @@ RUN pip install --no-cache-dir --upgrade pip
|
|
| 19 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 20 |
|
| 21 |
# 先安装除了 llama 以外的依赖(减少编译冲突风险)
|
| 22 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
# 关键:从 abetlen 的 CPU 专用源安装 llama-cpp-python
|
| 25 |
-
RUN pip install --no-cache-dir
|
|
|
|
| 26 |
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 27 |
|
| 28 |
COPY --chown=user . /app
|
|
|
|
| 19 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 20 |
|
| 21 |
# 先安装除了 llama 以外的依赖(减少编译冲突风险)
|
| 22 |
+
RUN pip install --no-cache-dir \
|
| 23 |
+
torch \
|
| 24 |
+
transformers \
|
| 25 |
+
gradio \
|
| 26 |
+
accelerate \
|
| 27 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 28 |
|
| 29 |
# 关键:从 abetlen 的 CPU 专用源安装 llama-cpp-python
|
| 30 |
+
RUN pip install --no-cache-dir \
|
| 31 |
+
llama-cpp-python \
|
| 32 |
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 33 |
|
| 34 |
COPY --chown=user . /app
|