Skip to content

Commit e053b89

Browse files
committed
Change to alpine image for the runner
1 parent b2bf5e0 commit e053b89

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage - Use a Python image with uv pre-installed
2-
FROM ghcr.io/astral-sh/uv:python3.13-bookworm AS builder
2+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS builder
33

44
# Install the project into `/app`
55
WORKDIR /app
@@ -11,8 +11,9 @@ ENV UV_COMPILE_BYTECODE=1
1111
ENV UV_LINK_MODE=copy
1212

1313
# Install git and build dependencies for ClickHouse client
14-
RUN --mount=type=cache,target=/var/cache/apt \
15-
apt-get update && apt-get install -y git build-essential
14+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
15+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
16+
apt-get update && apt-get install -y --no-install-recommends git build-essential
1617

1718
# Install the project's dependencies using the lockfile and settings
1819
RUN --mount=type=cache,target=/root/.cache/uv \
@@ -28,7 +29,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2829
uv sync --locked --no-dev --no-editable
2930

3031
# Production stage - Use minimal Python image
31-
FROM python:3.13-bookworm
32+
FROM python:3.13-slim-bookworm
3233

3334
# Set the working directory
3435
WORKDIR /app

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)