Gagandeep12 commited on
Commit
f663a90
·
verified ·
1 Parent(s): a62e97e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -26
Dockerfile CHANGED
@@ -1,26 +1,22 @@
1
- # Use official Python base image
2
- FROM python:3.10-slim
3
-
4
- # Install system dependencies for Tesseract and EasyOCR
5
- RUN apt-get update && apt-get install -y \
6
- tesseract-ocr \
7
- tesseract-ocr-hin \
8
- libgl1 \
9
- libglib2.0-0 \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Set working directory
13
- WORKDIR /app
14
-
15
- # Copy Python dependencies first
16
- COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy all project files
20
- COPY . .
21
-
22
- # Expose Hugging Face default port
23
- EXPOSE 7860
24
-
25
- # Run Flask app
26
- CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies for Tesseract and EasyOCR
4
+ RUN apt-get update && apt-get install -y \
5
+ tesseract-ocr \
6
+ tesseract-ocr-hin \
7
+ libgl1 \
8
+ libglib2.0-0 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /app
12
+
13
+ # Install Python dependencies
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy app files
18
+ COPY . .
19
+
20
+ EXPOSE 7860
21
+
22
+ CMD ["python", "app.py"]