Skip to content

Commit ef2bdf2

Browse files
committed
fix(docker): use python@3.14 and d/l models to shared dir
1 parent e129da7 commit ef2bdf2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# syntax=docker/dockerfile:1
22

3-
# Use the official UV Python base image with Python 3.13 on Debian Bookworm
3+
# Use the official UV Python base image with Python 3.14 on Debian Bookworm
44
# UV is a fast Python package manager that provides better performance than pip
55
# We use the slim variant to keep the image size smaller while still having essential tools
6-
ARG PYTHON_VERSION=3.13
6+
ARG PYTHON_VERSION=3.14
77
FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS base
88

99
# Keeps Python from buffering stdout and stderr to avoid situations where
@@ -15,6 +15,10 @@ ENV PYTHONUNBUFFERED=1
1515
# expense of a slightly longer build.
1616
ENV UV_COMPILE_BYTECODE=1
1717

18+
# Ensure local models are downloaded to a shared directory accessible by all stages.
19+
ENV HF_HOME=/app/.cache/huggingface
20+
ENV TORCH_HOME=/app/.cache/torch
21+
1822
# --- Build stage ---
1923
# Install dependencies, build native extensions, and prepare the application
2024
FROM base AS build

0 commit comments

Comments
 (0)