16 lines
339 B
Docker
16 lines
339 B
Docker
FROM python:3.13-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps for building Python packages
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc g++ && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
CMD uvicorn app:app --host 0.0.0.0 --port ${PORT:-8000}
|