From 258a384814ab363ec1cba7eff8cfad357d9d9894 Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Thu, 12 Jun 2025 18:03:57 -0700 Subject: [PATCH] Fix Dockerfile after testing in production. --- docker/Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9ffdaef6..50363723 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # Adapted from from https://github.com/MBARIMike/ur_l/python_docker/Dockerfile -FROM python:3.13-slim AS python-base +FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS python-base # Set DOCKER_USER_ID in shell, e.g. export DOCKER_USER_ID=$(id -u) ARG DOCKER_USER_ID @@ -19,14 +19,10 @@ RUN apt-get update \ git \ rsync -# Install uv -RUN curl -LsSf https://astral.sh/uv/install.sh | sh - WORKDIR $PYSETUP_PATH # Copy dependency files first for better cache -COPY ./pyproject.toml ./ -COPY ./src/pyproject.toml ./src/pyproject.toml +COPY ./pyproject.toml ./uv.lock ./ # Install Python dependencies using uv (from pyproject.toml) RUN uv pip install --system .