sableenkaur27/ReefSentinel-Backend
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install system dependencies for OpenCV (compatible with Debian trixie)6RUN apt-get update && apt-get install -y \7 libgl1 \8 libglib2.0-0 \9 && rm -rf /var/lib/apt/lists/*10 11# Set Python path to include current directory12ENV PYTHONPATH=/app13 14# Copy requirements and install15COPY requirements.txt .16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy the rest of the code19COPY . .20 21# Expose the port22EXPOSE 786023 24# Run the app25CMD ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "7860"]26 