AnemiaLens / Dockerfile
3v324v23's picture
fix: add xgboost runtime library to space image
f776916
Raw
History Blame Contribute Delete
545 Bytes
FROM python:3.11-slim
WORKDIR /app
# System deps for OpenCV
RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1 libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy and install backend runtime deps first.
COPY backend/requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy backend source
COPY backend/ .
EXPOSE 5000
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "5000"]