File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ RUN mkdir -p $INSTALL_DIR
2020WORKDIR $INSTALL_DIR
2121
2222COPY ./requirements.txt $INSTALL_DIR/
23- RUN pip3 install -r requirements.txt
23+ RUN python3 -m venv /venv
24+ RUN /venv/bin/pip3 install -r requirements.txt
2425
2526COPY . $INSTALL_DIR
Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ publish_to_pypi() {
5555 -e TWINE_PASSWORD \
5656 conjur-api-python3-publish bash -exc "
5757 echo 'Installing new versions of pip and wheel...'
58- /usr /bin/env pip3 install --upgrade pip wheel
58+ /venv /bin/pip3 install --upgrade pip wheel
5959
6060 echo 'Building distributable package...'
61- /usr /bin/env python3 -m build
61+ /venv /bin/python3 -m build
6262
6363 echo 'Testing artifacts in dist/*'
64- /usr /bin/env twine check dist/*
64+ /venv /bin/twine check dist/*
6565
6666 echo 'Publishing package to '\$ TWINE_REPOSITORY_URL' using account '\$ TWINE_USERNAME'...'
67- /usr /bin/env twine upload --skip-existing --repository-url $TWINE_REPOSITORY_URL dist/*
67+ /venv /bin/twine upload --skip-existing --repository-url $TWINE_REPOSITORY_URL dist/*
6868 "
6969}
7070
You can’t perform that action at this time.
0 commit comments