From f688f95283cd6d92faba7c75c17ba34729f294f3 Mon Sep 17 00:00:00 2001 From: Vasily Petrov Date: Mon, 9 May 2022 22:44:50 +0700 Subject: [PATCH 1/2] Update Dockerfile --- .devcontainer/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1435ba8..47b1fad 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,8 +9,7 @@ ARG NODE_VERSION="none" RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # Install poetry -RUN apt-get update && apt-get install curl -y && \ - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - +RUN pip install poetry # Configure poetry env RUN su vscode -c "poetry config virtualenvs.in-project true" From 29593a2b5f8f0e1746fc93e9ad44ce4c2cc043a9 Mon Sep 17 00:00:00 2001 From: Vasily Petrov Date: Mon, 9 May 2022 23:54:17 +0700 Subject: [PATCH 2/2] Update --- .devcontainer/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 47b1fad..782e014 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,10 +9,8 @@ ARG NODE_VERSION="none" RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # Install poetry -RUN pip install poetry - -# Configure poetry env -RUN su vscode -c "poetry config virtualenvs.in-project true" +RUN curl -sSL "https://install.python-poetry.org" | python && \ + su vscode -c "sudo /root/.local/bin/poetry config virtualenvs.in-project true" # Install jshint RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g jshint" 2>&1