Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
|
@@ -6,23 +6,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 6 |
build-essential \
|
| 7 |
cmake \
|
| 8 |
libopenblas-dev \
|
| 9 |
-
liblapack-dev
|
| 10 |
-
libjpeg-dev \
|
| 11 |
-
zlib1g-dev
|
| 12 |
|
| 13 |
# Python dependencies
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -U pip && \
|
| 16 |
pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
local_dir='models/llama', \
|
| 22 |
-
allow_patterns='*.Q4_K_M.gguf')"
|
| 23 |
-
|
| 24 |
-
# Copy application
|
| 25 |
-
COPY . .
|
| 26 |
|
| 27 |
# HF Spaces port
|
| 28 |
EXPOSE 7860
|
|
|
|
| 6 |
build-essential \
|
| 7 |
cmake \
|
| 8 |
libopenblas-dev \
|
| 9 |
+
liblapack-dev
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Python dependencies
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -U pip && \
|
| 14 |
pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
+
# Set working directory
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
COPY . /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# HF Spaces port
|
| 21 |
EXPOSE 7860
|