From c592a49c35249e1594f9f9a239bdd3f4a4180838 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Sat, 24 Jul 2021 16:03:18 -0700 Subject: [PATCH] set poetry to install to docker pip instead of venv --- Dockerfile | 4 +++- testing_file.py => examples/uniswap_inspect.py | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename testing_file.py => examples/uniswap_inspect.py (100%) diff --git a/Dockerfile b/Dockerfile index 9223c67..5041e59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/testing_file.py b/examples/uniswap_inspect.py similarity index 100% rename from testing_file.py rename to examples/uniswap_inspect.py