Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
|
|
|
| 5 |
curl \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
|
@@ -11,11 +12,12 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
RUN pip install --no-cache-dir
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
COPY --chown=user . /app
|
| 21 |
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# System level updates
|
| 4 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
+
libgomp1 \
|
| 6 |
curl \
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
|
|
|
| 12 |
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
+
# Step 1: Base dependencies install karein
|
| 16 |
+
RUN pip install --no-cache-dir gradio huggingface_hub
|
| 17 |
+
|
| 18 |
+
# Step 2: CPU Pre-built wheel index URL se llama-cpp-python install karein
|
| 19 |
+
RUN pip install --no-cache-dir llama-cpp-python \
|
| 20 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/wheels/cpu
|
| 21 |
|
| 22 |
COPY --chown=user . /app
|
| 23 |
|