ocr / Dockerfile
daojeil's picture
Update Dockerfile
35f717f verified
raw
history blame contribute delete
851 Bytes
# Start from a base Ubuntu image
FROM ubuntu:20.04
# Avoid prompts from apt
ENV DEBIAN_FRONTEND=noninteractive
# Install Python, Redis, and other dependencies
RUN apt-get update && apt-get install -y python3.9 python3-pip redis-server git
# Set the working directory in the container to /app
WORKDIR /app
# Clone the repository
RUN git clone -b huggingface https://github.com/KenKout/OCR-AI.git /app
# Install any needed packages specified in requirements.txt
RUN pip3 install -r requirements.txt
# Copy your application and other necessary files
ADD . /app
# Create temporary folder for the model
RUN mkdir /app/temp
RUN chmod 777 /app/temp
RUN pip3 show streamlit
# Copy a custom script that starts Redis and then your application
COPY start.sh /start.sh
COPY config.toml /app/.streamlit/config.toml
RUN chmod +x /start.sh
CMD ["/start.sh"]