smishr-18 commited on
Commit
090fcce
1 Parent(s): fd2c31d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -4
Dockerfile CHANGED
@@ -1,10 +1,22 @@
1
- FROM tesseractshadow/tesseract4re
2
 
3
- WORKDIR /code
 
 
 
 
4
 
5
- COPY . /code
 
6
 
7
- RUN pip install -r requirements.txt
 
 
 
 
 
 
 
8
 
9
 
10
  CMD ["streamlit", "run", "app.py", "--host" , "0.0.0.0" , "--server.port", "7860"]
 
1
+ FROM python:3.11
2
 
3
+ RUN apt-get update \
4
+ && apt-get install -y tesseract-ocr \
5
+ && apt-get install -y libtesseract-dev \
6
+ && apt-get clean \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
+ # Set the working directory in the container
10
+ WORKDIR /app
11
 
12
+ # Copy your application files into the container
13
+ COPY . /app
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Set the Tesseract path for pytesseract
19
+ ENV TESSDATA_PREFIX /usr/share/
20
 
21
 
22
  CMD ["streamlit", "run", "app.py", "--host" , "0.0.0.0" , "--server.port", "7860"]