parthmax commited on
Commit
7154e32
·
verified ·
1 Parent(s): 304a5a4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use lightweight Python image
2
+
3
+ FROM python:3.10-slim
4
+
5
+ # Set working directory
6
+
7
+ WORKDIR /app
8
+
9
+ # Copy files
10
+
11
+ COPY requirements.txt .
12
+ COPY app.py .
13
+
14
+ # Install dependencies
15
+
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Create upload folder
19
+
20
+ RUN mkdir -p uploads
21
+
22
+ # Expose port (Hugging Face uses 7860)
23
+
24
+ EXPOSE 7860
25
+
26
+ # Run app
27
+
28
+ CMD ["python", "app.py"]