diff --git a/Dockerfile b/Dockerfile index e569de8..e03aa1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build stage - Use a Python image with uv pre-installed -FROM ghcr.io/astral-sh/uv:python3.13-bookworm AS builder +FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS builder # Install the project into `/app` WORKDIR /app @@ -11,8 +11,9 @@ ENV UV_COMPILE_BYTECODE=1 ENV UV_LINK_MODE=copy # Install git and build dependencies for ClickHouse client -RUN --mount=type=cache,target=/var/cache/apt \ - apt-get update && apt-get install -y git build-essential +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ + --mount=type=cache,target=/var/lib/apt,sharing=locked \ + apt-get update && apt-get install -y --no-install-recommends git build-essential # Install the project's dependencies using the lockfile and settings RUN --mount=type=cache,target=/root/.cache/uv \ @@ -28,7 +29,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-dev --no-editable # Production stage - Use minimal Python image -FROM python:3.13-bookworm +FROM python:3.13-slim-bookworm # Set the working directory WORKDIR /app diff --git a/uv.lock b/uv.lock index acabc8f..146693e 100644 --- a/uv.lock +++ b/uv.lock @@ -42,14 +42,14 @@ wheels = [ [[package]] name = "authlib" -version = "1.6.3" +version = "1.6.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cryptography" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/5d/c6/d9a9db2e71957827e23a34322bde8091b51cb778dcc38885b84c772a1ba9/authlib-1.6.3.tar.gz", hash = "sha256:9f7a982cc395de719e4c2215c5707e7ea690ecf84f1ab126f28c053f4219e610", size = 160836, upload-time = "2025-08-26T12:13:25.206Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ce/bb/73a1f1c64ee527877f64122422dafe5b87a846ccf4ac933fe21bcbb8fee8/authlib-1.6.4.tar.gz", hash = "sha256:104b0442a43061dc8bc23b133d1d06a2b0a9c2e3e33f34c4338929e816287649", size = 164046, upload-time = "2025-09-17T09:59:23.897Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/25/2f/efa9d26dbb612b774990741fd8f13c7cf4cfd085b870e4a5af5c82eaf5f1/authlib-1.6.3-py2.py3-none-any.whl", hash = "sha256:7ea0f082edd95a03b7b72edac65ec7f8f68d703017d7e37573aee4fc603f2a48", size = 240105, upload-time = "2025-08-26T12:13:23.889Z" }, + { url = "https://files.pythonhosted.org/packages/0e/aa/91355b5f539caf1b94f0e66ff1e4ee39373b757fce08204981f7829ede51/authlib-1.6.4-py2.py3-none-any.whl", hash = "sha256:39313d2a2caac3ecf6d8f95fbebdfd30ae6ea6ae6a6db794d976405fdd9aa796", size = 243076, upload-time = "2025-09-17T09:59:22.259Z" }, ] [[package]]