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