neerajkalyank commited on
Commit
46efefc
1 Parent(s): d00e92a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python image from the Docker Hub
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && \
6
+ apt-get install -y tesseract-ocr && \
7
+ apt-get clean
8
+
9
+ # Copy the requirements file and install Python dependencies
10
+ COPY requirements.txt .
11
+ RUN pip install -r requirements.txt
12
+
13
+ # Copy the entire app code into the Docker container
14
+ COPY . .
15
+
16
+ # Command to run the Gradio app
17
+ CMD ["python3", "app.py"]