python version increased to 3.14

This commit is contained in:
2026-07-27 15:49:33 +03:30
parent 80a892478f
commit 943dc190a3
+20 -20
View File
@@ -13,23 +13,23 @@ COPY pyproject.toml uv.lock* ./
RUN uv sync --frozen --no-dev --no-install-project RUN uv sync --frozen --no-dev --no-install-project
# ── Stage 2: runtime ────────────────────────────────────────────────────────── # ── Stage 2: runtime ──────────────────────────────────────────────────────────
FROM python:3.11-slim AS runtime FROM python:3.14-slim AS runtime
# ── Chrome + system deps ────────────────────────────────────────────────────── # ── Chrome + system deps ──────────────────────────────────────────────────────
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
wget gnupg ca-certificates curl unzip \ wget gnupg ca-certificates curl unzip \
# X11 / rendering libs needed even in headless mode # X11 / rendering libs needed even in headless mode
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \ libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \ libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
libgbm1 libasound2 libpango-1.0-0 libcairo2 libx11-xcb1 \ libgbm1 libasound2 libpango-1.0-0 libcairo2 libx11-xcb1 \
&& wget -qO- https://dl.google.com/linux/linux_signing_key.pub \ && wget -qO- https://dl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg \ | gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] \ && echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] \
http://dl.google.com/linux/chrome/deb/ stable main" \ http://dl.google.com/linux/chrome/deb/ stable main" \
> /etc/apt/sources.list.d/google-chrome.list \ > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends google-chrome-stable \ && apt-get install -y --no-install-recommends google-chrome-stable \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# ── uv + venv from builder ──────────────────────────────────────────────────── # ── uv + venv from builder ────────────────────────────────────────────────────
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
@@ -39,12 +39,12 @@ WORKDIR /app
# Make the venv's binaries the default Python # Make the venv's binaries the default Python
ENV PATH="/app/.venv/bin:$PATH" \ ENV PATH="/app/.venv/bin:$PATH" \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \ PYTHONDONTWRITEBYTECODE=1 \
# Tell undetected-chromedriver where Chrome lives # Tell undetected-chromedriver where Chrome lives
CHROME_BINARY=/usr/bin/google-chrome-stable \ CHROME_BINARY=/usr/bin/google-chrome-stable \
# Always run headless inside Docker # Always run headless inside Docker
HEADLESS=true HEADLESS=true
# ── Application code ────────────────────────────────────────────────────────── # ── Application code ──────────────────────────────────────────────────────────
COPY . . COPY . .