Skip to content

Commit

Permalink
Merge pull request #16 from withlogicco/hotfix/poetry-own-location
Browse files Browse the repository at this point in the history
Install poetry in its own virtualenv not to mess with libraries
  • Loading branch information
akalipetis committed Sep 29, 2022
2 parents 12ad4cc + da27cd0 commit f29a378
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ ARG SETUPTOOLS_VERSION=65.3.0
RUN pip install --upgrade pip==${PIP_VERSION} setuptools==${SETUPTOOLS_VERSION}

ARG POETRY_VERSION=1.2.1
RUN pip install poetry==${POETRY_VERSION}
RUN poetry config virtualenvs.create false
ENV POETRY_HOME=/opt/poetry\
PATH="${PATH}:/opt/poetry/bin"
RUN python3 -m venv ${POETRY_HOME} &&\
${POETRY_HOME}/bin/pip install poetry==${POETRY_VERSION} &&\
poetry config virtualenvs.create false

WORKDIR /usr/src/app

0 comments on commit f29a378

Please sign in to comment.