Spaces:
Sleeping
Sleeping
File size: 530 Bytes
7a5bb5d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.10-slim
WORKDIR /app
# Install system dependencies required for OpenCV/Pillow if needed
RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev && rm -rf /var/lib/apt/lists/*
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project for path resolution, or correctly scope it
COPY backend/ ./backend/
COPY model/ ./model/
COPY utils/ ./utils/
EXPOSE 8000
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|