deepdetect / Dockerfile
SanskarModi's picture
Upload 6 files
9e0f3c3 verified
raw
history blame
512 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies required for OpenCV and mediapipe
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
EXPOSE 8000
# Start FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]