TourLover commited on
Commit
924332f
·
verified ·
1 Parent(s): c872f75

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base image
2
+ FROM python:3.9-slim
3
+
4
+ # Install system dependencies for Tesseract OCR and Gradio
5
+ RUN apt-get update && \
6
+ apt-get install -y \
7
+ tesseract-ocr \
8
+ libtesseract-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python dependencies
12
+ COPY requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy your Gradio application code into the container
16
+ COPY . /app
17
+ WORKDIR /app
18
+
19
+ # Specify the command to run your Gradio app
20
+ CMD ["python", "app.py"]