Sathvik-kota commited on
Commit
4c3103a
·
verified ·
1 Parent(s): 8571508

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -------------------------
2
+ # Base image
3
+ # -------------------------
4
+ FROM python:3.11-slim
5
+
6
+ # Allow root user (HF Spaces supports this for Docker)
7
+ WORKDIR /app
8
+
9
+ ENV PYTHONUNBUFFERED=1 \
10
+ PORT=7860
11
+
12
+ # Install system dependencies
13
+ RUN apt-get update && apt-get install -y \
14
+ curl git build-essential && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+ # Install Python dependencies first (cached)
18
+ COPY requirements.txt .
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy whole project
22
+ COPY . .
23
+
24
+ # Make startup executable
25
+ RUN chmod +x /app/start.sh
26
+
27
+ EXPOSE 7860
28
+
29
+ CMD ["bash", "/app/start.sh"]