From 2e438d7cc6c4b7b7088737f2a725435d94b0b81b Mon Sep 17 00:00:00 2001 From: Jan Kadlec Date: Fri, 24 Oct 2025 09:55:15 +0200 Subject: [PATCH] chore: add support for uv in tests-support Dockerfile --- packages/tests-support/Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/tests-support/Dockerfile b/packages/tests-support/Dockerfile index c72c556de..01734bf09 100644 --- a/packages/tests-support/Dockerfile +++ b/packages/tests-support/Dockerfile @@ -1,6 +1,6 @@ # (C) 2022 GoodData Corporation -ARG PY_TAG="3.9.9-slim-bullseye" -FROM python:${PY_TAG} +ARG PY_TAG="python3.10-bookworm" +FROM ghcr.io/astral-sh/uv:${PY_TAG} ENV USER_NAME=tests ENV USER_GROUP=tests @@ -10,20 +10,22 @@ RUN set -x \ && useradd -m -g ${USER_GROUP} ${USER_NAME} \ && true -USER ${USER_NAME} WORKDIR /app -COPY ./packages/tests-support/requirements.txt /app/requirements.txt -COPY ./packages/tests-support/fixtures /app/fixtures +COPY ./packages/tests-support/pyproject.toml /app/pyproject.toml +COPY ./packages/tests-support/src /app/src RUN set -x \ - && pip3 install --no-cache-dir --user -r requirements.txt \ + && uv pip install --system . \ && true +USER ${USER_NAME} + +COPY ./packages/tests-support/fixtures /app/fixtures COPY ./packages/tests-support/*.py /app LABEL image_name="GoodData Python SDK python test support image" # LABEL maintainer="TigerTeam " LABEL git_repository_url="https://github.com/gooddata/gooddata-python-sdk/" -LABEL parent_image="python:${PY_TAG}" +LABEL parent_image="ghcr.io/astral-sh/uv:${PY_TAG}" CMD ["python3"]