Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM python:3.11
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
cmake \
|
|
@@ -11,10 +11,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
|
| 12 |
# Copy and install Python dependencies
|
| 13 |
COPY requirements.txt .
|
| 14 |
-
RUN pip install
|
| 15 |
|
| 16 |
-
# Build llama-cpp-python from source (CPU-only
|
| 17 |
-
RUN pip install
|
| 18 |
|
| 19 |
# Copy application file
|
| 20 |
COPY app.py .
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Essentials for building llama-cpp-python
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
cmake \
|
|
|
|
| 11 |
|
| 12 |
# Copy and install Python dependencies
|
| 13 |
COPY requirements.txt .
|
| 14 |
+
RUN pip install -r requirements.txt
|
| 15 |
|
| 16 |
+
# Build llama-cpp-python from source (CPU-only)
|
| 17 |
+
RUN pip install llama-cpp-python
|
| 18 |
|
| 19 |
# Copy application file
|
| 20 |
COPY app.py .
|