Norakneath commited on
Commit
f1f776f
·
verified ·
1 Parent(s): fe50f9f

Rename Dockerfile to packages.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -37
  2. packages.txt +2 -0
Dockerfile DELETED
@@ -1,37 +0,0 @@
1
- # Use official Python image
2
- FROM python:3.10
3
-
4
- # Install system dependencies, including Tesseract OCR
5
- RUN apt-get update && apt-get install -y \
6
- software-properties-common \
7
- tesseract-ocr \
8
- tesseract-ocr-all \
9
- libtesseract-dev \
10
- git \
11
- ffmpeg \
12
- libsm6 \
13
- libxext6 \
14
- cmake \
15
- && rm -rf /var/lib/apt/lists/*
16
-
17
- # Verify Tesseract installation
18
- RUN which tesseract && tesseract --version
19
-
20
- # Set working directory inside the container
21
- WORKDIR /home/user/app
22
-
23
- # Copy the requirements file and install dependencies
24
- COPY requirements.txt .
25
- RUN pip install --no-cache-dir -r requirements.txt
26
-
27
- # Set the Tesseract path in the environment
28
- ENV TESSERACT_PATH="/usr/bin/tesseract"
29
-
30
- # Copy all project files into the container
31
- COPY . .
32
-
33
- # Expose the Gradio default port
34
- EXPOSE 7860
35
-
36
- # Run the application
37
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
packages.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ tesseract-ocr
2
+ libtesseract-dev