From 714d18584673b84912cc6948a0c6e19386840a3a Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Mon, 29 Jun 2026 13:19:48 +0530 Subject: [PATCH] switch to python slim image --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5263fc8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3.14-slim + +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + build-essential \ + && rm -rf /var/lib/apt/lists/* + +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +WORKDIR /app + +COPY pyproject.toml uv.lock ./ + +RUN uv sync --frozen --no-cache + +COPY . . + +ENV PATH="/app/.venv/bin:$PATH" + +EXPOSE 3000 + +CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "3000"]