Skip to content

Commit 93408f1

Browse files
Merge pull request #1199 from gooddata/snapshot-master-42e61f5b-to-rel/dev
[bot] Merge master/42e61f5b into rel/dev
2 parents cf78893 + 42e61f5 commit 93408f1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/tests-support/Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

55
ENV USER_NAME=tests
66
ENV 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}
1413
WORKDIR /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

1817
RUN 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
2224
COPY ./packages/tests-support/*.py /app
2325

2426
LABEL image_name="GoodData Python SDK python test support image"
2527
# LABEL maintainer="TigerTeam <tiger@gooddata.com>"
2628
LABEL 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

2931
CMD ["python3"]

0 commit comments

Comments
 (0)