MrDevCoder01/DSBackend
1
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies required for OpenCV7RUN apt-get update && apt-get install -y \8 libgl1 \9 libglib2.0-0 \10 && rm -rf /var/lib/apt/lists/*11 12# Copy requirements first to leverage Docker cache13COPY requirements.txt .14 15# Install Python dependencies16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy the rest of the application19COPY . .20 21# Expose port 7860 (Hugging Face default)22EXPOSE 786023 24# Start the application25CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]26 