Spaces:
Runtime error
Runtime error
AI-RESEARCHER-2024
commited on
Commit
•
7ff268b
1
Parent(s):
f9e7e58
Update Dockerfile
Browse files- Dockerfile +10 -10
Dockerfile
CHANGED
@@ -9,13 +9,13 @@ ENV PATH="/home/appuser/.local/bin:${PATH}"
|
|
9 |
ENV HF_HOME="/home/appuser/.cache/huggingface"
|
10 |
|
11 |
# Install system dependencies
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
|
20 |
# Create a non-root user
|
21 |
RUN useradd -m -u 1000 appuser && \
|
@@ -36,9 +36,9 @@ RUN mkdir -p $APP_HOME/.chainlit/files && \
|
|
36 |
mkdir -p $HF_HOME
|
37 |
|
38 |
# Download the model using huggingface-cli
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
|
43 |
# Install Python dependencies
|
44 |
RUN pip install --user --no-cache-dir -r requirements.txt
|
|
|
9 |
ENV HF_HOME="/home/appuser/.cache/huggingface"
|
10 |
|
11 |
# Install system dependencies
|
12 |
+
RUN apt-get update && apt-get install -y \
|
13 |
+
build-essential \
|
14 |
+
cmake \
|
15 |
+
git \
|
16 |
+
wget \
|
17 |
+
curl \
|
18 |
+
&& rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
# Create a non-root user
|
21 |
RUN useradd -m -u 1000 appuser && \
|
|
|
36 |
mkdir -p $HF_HOME
|
37 |
|
38 |
# Download the model using huggingface-cli
|
39 |
+
RUN pip install --user --no-cache-dir huggingface_hub && \
|
40 |
+
huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf --local-dir $APP_HOME/models/ && \
|
41 |
+
mv $APP_HOME/models/Meta-Llama-3.1-8B-Instruct-IQ2_M.gguf $APP_HOME/models/llama-model.gguf
|
42 |
|
43 |
# Install Python dependencies
|
44 |
RUN pip install --user --no-cache-dir -r requirements.txt
|