Spaces:
Runtime error
Runtime error
Boning c
commited on
Create Dockerfile
Browse files- Dockerfile +26 -0
Dockerfile
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
# Install build tools and dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
build-essential \
|
6 |
+
git \
|
7 |
+
curl \
|
8 |
+
wget \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
# Python deps
|
14 |
+
COPY requirements.txt .
|
15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
+
|
17 |
+
# Download GGUF model
|
18 |
+
RUN mkdir models && \
|
19 |
+
curl -L -o models/Sam-reason-A1.Q4_K_S.gguf \
|
20 |
+
https://huggingface.co/mradermacher/Sam-reason-A1-GGUF/resolve/main/Sam-reason-A1.Q4_K_S.gguf
|
21 |
+
|
22 |
+
COPY . .
|
23 |
+
|
24 |
+
EXPOSE 7860
|
25 |
+
|
26 |
+
CMD ["python", "agent.py"]
|