Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions packages/tests-support/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 <tiger@gooddata.com>"
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"]
Loading