maghwa commited on
Commit
202c689
·
verified ·
1 Parent(s): 78cfc23

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile CHANGED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Copy requirements
7
+ COPY requirements.txt .
8
+
9
+ # Install dependencies
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy application files
13
+ COPY . .
14
+
15
+ # Expose port (HF Spaces uses port 7860 by default)
16
+ EXPOSE 7860
17
+
18
+ # Set environment variables
19
+ ENV PORT=7860
20
+
21
+ # Run the application
22
+ CMD ["python", "annotation_app.py"]