From 83714181f4430b383b366ae77cbf890011a4ae85 Mon Sep 17 00:00:00 2001 From: "bonnai.djicko" <@ekino.com> Date: Wed, 3 Jan 2024 09:17:01 +0100 Subject: [PATCH] fix(tezosqa): fix pytezos dependencies installation --- tezosqa/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tezosqa/Dockerfile b/tezosqa/Dockerfile index 6cd149398..d84c9ae8e 100644 --- a/tezosqa/Dockerfile +++ b/tezosqa/Dockerfile @@ -3,11 +3,9 @@ FROM docker:24.0.7-dind WORKDIR /tezos RUN echo "Install basics Python tools" \ - apk update && \ - apk add --no-cache python3 && \ - python3 -m ensurepip && \ - rm -r /usr/lib/python*/ensurepip && \ - pip3 install --no-cache --upgrade pip setuptools + && apk update \ + && apk add --no-cache python3 py3-pip + RUN echo "Install crypto libs and various tools" \ && apk --no-cache add -q libsodium-dev pkgconfig libsecp256k1-dev gmp-dev python3-dev wget build-base libffi-dev \ @@ -23,8 +21,10 @@ RUN echo "Install ligo" \ && chmod +x ./ligo && cp ligo /usr/bin \ && echo "Done!" +ENV PATH="/venv/bin:$PATH" RUN echo "Install Pytezos and other python libs" \ - && pip install pytezos \ + && python3 -m venv /venv \ + && pip3 install pytezos \ && echo "Done!" RUN echo "Cleanup" \