2026-03-04 15:34:35 +08:00
|
|
|
FROM python:3.13-slim-bookworm AS builder
|
2026-03-04 00:18:33 +08:00
|
|
|
WORKDIR /build
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
|
|
|
|
|
|
2026-03-04 15:34:35 +08:00
|
|
|
FROM python:3.13-slim-bookworm
|
2026-03-04 00:18:33 +08:00
|
|
|
WORKDIR /app
|
|
|
|
|
COPY --from=builder /install /usr/local
|
2026-03-05 14:40:27 +08:00
|
|
|
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${APP_PORT:-7000} --workers ${UVICORN_WORKERS:-4}"]
|