damoojeje commited on
Commit
3fbb6a1
·
verified ·
1 Parent(s): df15a5f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -0
Dockerfile ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ============================
2
+ # ✅ Dockerfile for SmartManuals-AI
3
+ # ============================
4
+
5
+ FROM python:3.10-slim
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ poppler-utils \
11
+ tesseract-ocr \
12
+ libglib2.0-0 \
13
+ libsm6 \
14
+ libxext6 \
15
+ libxrender-dev \
16
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
17
+
18
+ # Set work directory
19
+ WORKDIR /app
20
+
21
+ # Copy requirements first to leverage Docker layer caching
22
+ COPY requirements.txt ./
23
+
24
+ # Install Python dependencies
25
+ RUN pip install --upgrade pip && pip install -r requirements.txt
26
+
27
+ # Copy rest of the application
28
+ COPY . .
29
+
30
+ # Expose the default Gradio port
31
+ EXPOSE 7860
32
+
33
+ # Run the app
34
+ CMD ["python", "app.py"]