diff --git a/Dockerfile b/Dockerfile index be74384..685dc0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,5 @@ RUN cd /setup/ \ && chmod +x packages_setup.bash \ && ./packages_setup.bash \ && mkdir --parents /setup/src/data_common && touch /setup/src/data_common/__init__.py \ - && export PATH="$HOME/.poetry/bin:$PATH" \ + && export PATH="/root/.local/bin:$PATH" \ && cd /setup/ && poetry install \ No newline at end of file diff --git a/bin/packages_setup.bash b/bin/packages_setup.bash index ce6a4ec..c50f4f2 100755 --- a/bin/packages_setup.bash +++ b/bin/packages_setup.bash @@ -1,11 +1,10 @@ #!/bin/bash -curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - -echo "export PATH=\"$HOME/.poetry/bin:$PATH\"" > ~/.bashrc -export PATH="$HOME/.poetry/bin:$PATH" +curl -sSL https://install.python-poetry.org | python - +echo "export PATH=\"/root/.local/bin:$PATH\"" > ~/.bashrc +export PATH="/root/.local/bin:$PATH" poetry config virtualenvs.create false - curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ && echo 'deb https://deb.nodesource.com/node_14.x buster main' > /etc/apt/sources.list.d/nodesource.list