File size: 510 Bytes
d7228c8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Multi-stage PyTorch deployment container for SLM ecosystem
FROM python:3.10-slim as builder
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Install python dependencies
COPY pyproject.toml .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir .
COPY . /app
EXPOSE 8000
CMD ["uvicorn", "slm.api.app:app", "--host", "0.0.0.0", "--port", "8000"]
|