Update Dockerfile to use Python 3.14 base images

This commit is contained in:
TzuWei 2026-02-28 22:26:39 +09:00
parent b3436707ad
commit cc84648664
Signed by: tzuwei-huang
GPG Key ID: 88A0D3DA7558EE01

View File

@ -1,5 +1,5 @@
# Use a specialized uv image for faster dependency management
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder
FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim AS builder
# Set the working directory
WORKDIR /app
@ -12,11 +12,11 @@ ENV UV_LINK_MODE=copy
# Install dependencies first (for caching)
COPY pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project --no-dev
# Final stage
FROM python:3.12-slim-bookworm
FROM python:3.14-slim-bookworm
WORKDIR /app