set poetry to install to docker pip instead of venv

This commit is contained in:
Patrick Daly 2021-07-24 16:03:18 -07:00
parent 4b53a99fc9
commit c592a49c35
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ ENV PATH="${PATH}:/root/.poetry/bin"
COPY . /app
WORKDIR /app/
RUN poetry install
# poetry uses virtual env by default, turn this off inside container
RUN poetry config virtualenvs.create false && \
poetry install
# easter eggs 😝
RUN echo "PS1='🕵️:\[\033[1;36m\]\h \[\033[1;34m\]\W\[\033[0;35m\]\[\033[1;36m\]$ \[\033[0m\]'" >> ~/.bashrc