paddleocr / Dockerfile
rththr's picture
Update Dockerfile
dcefea8 verified
raw
history blame contribute delete
721 Bytes
# Use Python 3.10 (Stable and compatible with PaddleOCR)
FROM python:3.10
# Set up the working directory
WORKDIR /app
# ---------------------------------------------------
# FIX: Install missing system libraries for OpenCV
# ---------------------------------------------------
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy your requirements file and install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app code
COPY . .
# Expose the port used by Gradio
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]