rahulrana0001 commited on
Commit
24a4847
·
1 Parent(s): b63a212

Add lightweight Dockerfile for Hugging Face Spaces deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ tesseract-ocr \
7
+ libgl1 \
8
+ libglib2.0-0 \
9
+ build-essential \
10
+ curl \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ WORKDIR /app
15
+
16
+ # Copy python dependencies and install
17
+ COPY requirements.txt ./
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy application code and files
21
+ COPY pipeline/ ./pipeline/
22
+ COPY app.py ./
23
+ COPY maya.png ./
24
+ COPY maya_ui.png ./
25
+ COPY maya_var.py ./
26
+
27
+ EXPOSE 7860
28
+
29
+ # Run uvicorn on port 7860 (required by HF Spaces)
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]