ocr / Dockerfile
hfacemko's picture
Update Dockerfile
a6744a8 verified
raw
history blame contribute delete
556 Bytes
# 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"]