alpr-ocr / Dockerfile
Japhari's picture
Fix OpenCV dependencies: use correct Debian package names and update Dockerfile for Gradio
273bba1
Raw
History Blame Contribute Delete
534 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port for Gradio
EXPOSE 7860
# Set environment variables
ENV PYTHONPATH=/app
# Run the application
CMD ["python", "app.py"]