Boning c commited on
Commit
0aedf16
·
verified ·
1 Parent(s): 625b3d1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. 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"]