Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +11 -5
Dockerfile
CHANGED
@@ -1,19 +1,25 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
4 |
&& rm -rf /var/lib/apt/lists/*
|
5 |
|
6 |
WORKDIR /app
|
7 |
|
|
|
8 |
COPY requirements.txt .
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
-
# GGUF model
|
12 |
RUN mkdir models && \
|
13 |
-
curl -L -o models/Sam-reason-
|
14 |
-
https://huggingface.co/mradermacher/Sam-reason-
|
|
|
15 |
|
16 |
-
COPY . .
|
17 |
|
18 |
EXPOSE 7860
|
19 |
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# System dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
build-essential \
|
6 |
+
curl \
|
7 |
+
git \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
# Python dependencies
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# GGUF model (gemma3 architecture, compatible)
|
17 |
RUN mkdir models && \
|
18 |
+
curl -L -o models/Sam-reason-S2.1.Q4_K_S.gguf \
|
19 |
+
https://huggingface.co/mradermacher/Sam-reason-S2.1-GGUF/resolve/main/Sam-reason-S2.1.Q4_K_S.gguf && \
|
20 |
+
test $(stat -c%s models/Sam-reason-S2.1.Q4_K_S.gguf) -gt 300000000 || (echo "Model download failed or incomplete" && exit 1)
|
21 |
|
22 |
+
COPY agent.py .
|
23 |
|
24 |
EXPOSE 7860
|
25 |
|