File size: 851 Bytes
79ec08a 0f81b49 79ec08a 35f717f 79ec08a 1571073 79ec08a e72756e 79ec08a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# 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"] |