Droid210/FleetVision
0
1FROM python:3.10-slim2 3ENV PYTHONDONTWRITEBYTECODE=1 \4 PYTHONUNBUFFERED=1 \5 PIP_NO_CACHE_DIR=16 7WORKDIR /app8 9# Minimal system libs for OpenCV/Pillow runtime compatibility.10RUN apt-get update \11 && apt-get install -y --no-install-recommends \12 libgl1 \13 libglib2.0-0 \14 curl \15 && rm -rf /var/lib/apt/lists/*16 17COPY requirements.txt ./18RUN pip install --upgrade pip \19 && pip install -r requirements.txt20 21COPY . .22 23# Hugging Face Spaces (Docker SDK) defaults to PORT=7860.24ENV PORT=786025EXPOSE 786026 27CMD ["sh", "-c", "uvicorn api.main:app --host 0.0.0.0 --port ${PORT}"]28 