File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ARG PYTHON_VERSION=3.13.8
1+ FROM python:3.14-slim-trixie AS builder
22
3- FROM ubuntu:24.04 AS builder
4-
5- ARG PYTHON_VERSION
6- ENV DEBIAN_FRONTEND=noninteractive \
7- UV_COMPILE_BYTECODE=1 \
8- UV_LINK_MODE=copy \
9- UV_MANAGED_PYTHON=1 \
10- UV_PYTHON_INSTALL_DIR=/opt/python
3+ ENV UV_COMPILE_BYTECODE=1 \
4+ UV_LINK_MODE=copy
115
126RUN apt-get update \
13- && apt-get install -y --no-install-recommends build-essential ca-certificates libssl-dev \
7+ && apt-get install -y --no-install-recommends build-essential libssl-dev \
148 && rm -rf /var/lib/apt/lists/*
159
1610COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
1711
1812WORKDIR /app
1913
2014COPY pyproject.toml ./
21- RUN uv python install "${PYTHON_VERSION}" --no-bin \
22- && uv sync --no-cache --no-dev --no-install-project --python "${PYTHON_VERSION}"
15+ RUN uv sync --no-cache --no-dev --no-install-project --python /usr/local/bin/python
2316
2417
25- FROM ubuntu:24.04
18+ FROM python:3.14-slim-trixie
2619
27- ENV DEBIAN_FRONTEND=noninteractive \
28- PATH="/app/.venv/bin:${PATH}" \
20+ ENV PATH="/app/.venv/bin:${PATH}" \
2921 PYTHONPATH="/app" \
3022 PYTHONUNBUFFERED=1
3123
32- RUN apt-get update \
33- && apt-get install -y --no-install-recommends ca-certificates \
34- && rm -rf /var/lib/apt/lists/*
35-
3624WORKDIR /app
3725
38- COPY --from=builder /opt/python /opt/python
3926COPY --from=builder /app/.venv /app/.venv
4027COPY transaction_manager ./transaction_manager
4128
You can’t perform that action at this time.
0 commit comments