Unlimitedlevel19 commited on
Commit
04a6f77
·
verified ·
1 Parent(s): af0d5e5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install Tesseract OCR
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ tesseract-ocr \
7
+ libtesseract-dev \
8
+ tesseract-ocr-ind \
9
+ ffmpeg libsm6 libxext6 && \
10
+ apt-get clean && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ WORKDIR /app
14
+
15
+ # Copy requirements and install dependencies
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy the rest of the application
20
+ COPY . .
21
+
22
+ # Command to run the application
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]