16 lines
249 B
Docker
16 lines
249 B
Docker
FROM python:3.12-slim as builder
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml .
|
|
RUN uv sync
|
|
|
|
COPY . .
|
|
|
|
USER 1000
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |