File size: 556 Bytes
85a1854
 
 
 
 
 
 
 
 
 
 
 
 
6ec21db
080f854
6ec21db
a6744a8
 
 
85a1854
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container to /app
WORKDIR /app

# Clone the repository
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/KenKout/OCR-AI.git /app

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

RUN mkdir /app/app/downloads
RUN chmod 777 /app/app/downloads

RUN mkdir /.streamlit
RUN chmod 777 /.streamlit

# Run app.py when the container launches
CMD ["python", "run.py"]