File size: 721 Bytes
78858e6 dcefea8 78858e6 |
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 |
# 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"] |