Sensei13k commited on
Commit
ef86e77
1 Parent(s): f64df90

Rename Dockerfile to dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile → dockerfile +10 -6
Dockerfile → dockerfile RENAMED
@@ -1,18 +1,22 @@
1
  FROM python:3.9
2
 
3
- # Install Tesseract OCR
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  libtesseract-dev \
7
- pkg-config \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Copy your app files
11
- COPY . /app
12
  WORKDIR /app
13
 
 
 
 
14
  # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Run your Gradio app
18
- CMD ["gradio", "app.py"]
 
 
 
 
1
  FROM python:3.9
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  libtesseract-dev \
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ # Set the working directory
 
10
  WORKDIR /app
11
 
12
+ # Copy the requirements.txt file
13
+ COPY requirements.txt ./
14
+
15
  # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy the rest of the application code
19
+ COPY . .
20
+
21
+ # Run the Gradio app
22
+ CMD ["python", "app.py"]