File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11# (C) 2022 GoodData Corporation
2- ARG PY_TAG="3.9.9-slim-bullseye "
3- FROM python :${PY_TAG}
2+ ARG PY_TAG="python3.10-bookworm "
3+ FROM ghcr.io/astral-sh/uv :${PY_TAG}
44
55ENV USER_NAME=tests
66ENV USER_GROUP=tests
@@ -10,20 +10,22 @@ RUN set -x \
1010 && useradd -m -g ${USER_GROUP} ${USER_NAME} \
1111 && true
1212
13- USER ${USER_NAME}
1413WORKDIR /app
15- COPY ./packages/tests-support/requirements.txt /app/requirements.txt
16- COPY ./packages/tests-support/fixtures /app/fixtures
14+ COPY ./packages/tests-support/pyproject.toml /app/pyproject.toml
15+ COPY ./packages/tests-support/src /app/src
1716
1817RUN set -x \
19- && pip3 install --no-cache-dir --user -r requirements.txt \
18+ && uv pip install --system . \
2019 && true
2120
21+ USER ${USER_NAME}
22+
23+ COPY ./packages/tests-support/fixtures /app/fixtures
2224COPY ./packages/tests-support/*.py /app
2325
2426LABEL image_name="GoodData Python SDK python test support image"
2527# LABEL maintainer="TigerTeam <tiger@gooddata.com>"
2628LABEL git_repository_url="https://github.com/gooddata/gooddata-python-sdk/"
27- LABEL parent_image="python :${PY_TAG}"
29+ LABEL parent_image="ghcr.io/astral-sh/uv :${PY_TAG}"
2830
2931CMD ["python3" ]
You can’t perform that action at this time.
0 commit comments