diff --git a/Dockerfile b/Dockerfile index 8156a35..26da678 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim AS deps +FROM python:3.14-slim AS deps WORKDIR /app @@ -15,7 +15,7 @@ COPY pyproject.toml pdm.lock LICENSE /app/ RUN pdm install --frozen-lockfile --prod --no-editable --no-self -FROM python:3.11-slim AS model-download +FROM python:3.14-slim AS model-download COPY --from=deps /app/.venv /app/.venv @@ -33,7 +33,7 @@ open_clip.create_model_and_transforms( print("Model weights cached.") EOF -FROM python:3.11-slim AS runtime +FROM python:3.14-slim AS runtime RUN apt-get update && apt-get install -y --no-install-recommends \ libglib2.0-0 \ diff --git a/pyproject.toml b/pyproject.toml index 1e02ffe..97d40d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "embedding-api" version = "0.1.0" description = "CPU-optimized image embedding API using OpenCLIP" readme = "README.md" -requires-python = "==3.11.*" +requires-python = "==3.14.*" dependencies = [ "fastapi>=0.115.0", "uvicorn[standard]>=0.30.0",