Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -10
Dockerfile
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
-
|
| 4 |
-
RUN wget https://github.com/abetlen/llama-cpp-python/releases/download/v0.2.55/llama_cpp_python-0.2.55-cp310-cp310-linux_x86_64.whl
|
| 5 |
|
| 6 |
-
# Install the
|
| 7 |
-
RUN pip install
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
# Install
|
| 10 |
-
RUN pip install
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
RUN rm llama_cpp_python-0.2.55-cp310-cp310-linux_x86_64.whl
|
| 14 |
-
|
| 15 |
-
# App Setup
|
| 16 |
WORKDIR /app
|
| 17 |
COPY . .
|
| 18 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
+
RUN pip install --upgrade pip
|
|
|
|
| 4 |
|
| 5 |
+
# Install the pre-built wheel
|
| 6 |
+
RUN pip install --no-cache-dir \
|
| 7 |
+
llama-cpp-python \
|
| 8 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 9 |
|
| 10 |
+
# Install other dependencies
|
| 11 |
+
RUN pip install --no-cache-dir \
|
| 12 |
+
huggingface_hub \
|
| 13 |
+
gradio
|
| 14 |
|
| 15 |
+
# Copy and Run
|
|
|
|
|
|
|
|
|
|
| 16 |
WORKDIR /app
|
| 17 |
COPY . .
|
| 18 |
CMD ["python", "app.py"]
|