From 3e3a8a0a834fc3c17ac128c6890fbd526fa75767 Mon Sep 17 00:00:00 2001 From: Andrei Neagu Date: Tue, 2 Jul 2024 17:11:44 +0200 Subject: [PATCH] making build --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index be8a49f..a16b07e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,14 +66,15 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o / # Set-up necessary Env vars for PyEnv -ENV PYENV_ROOT="$HOME/.pyenv" -ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH +ENV PYENV_ROOT="/root/.pyenv" +ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH # Install pyenv RUN set -ex && \ curl https://pyenv.run | bash && \ pyenv update && \ pyenv install ${PYTHON_VERSION} && \ - pyenv global ${PYTHON_VERSION} && \ + pyenv virtualenv ${PYTHON_VERSION} venv && \ + pyenv global venv && \ pyenv rehash && \ python --version @@ -83,7 +84,8 @@ RUN git clone -n ${REPO_NAME} ${CLONE_DIR} && \ git checkout -B ${BRANCH_NAME} ${COMMIT_SHA} && \ # install ooil and requirements cd ${CLONE_DIR}/packages/service-integration && \ - pip install --no-cache-dir -r requirements/prod.txt && \ + pip install uv && \ + uv pip sync requirements/prod.txt && \ pip install --no-cache-dir . && \ cd / && \ # remove source directory