Skip to content

Commit 49c8aed

Browse files
committed
Update docker image to 3.14
1 parent 5c91797 commit 49c8aed

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

Dockerfile

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,28 @@
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

126
RUN 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

1610
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
1711

1812
WORKDIR /app
1913

2014
COPY 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-
3624
WORKDIR /app
3725

38-
COPY --from=builder /opt/python /opt/python
3926
COPY --from=builder /app/.venv /app/.venv
4027
COPY transaction_manager ./transaction_manager
4128

0 commit comments

Comments
 (0)