From 03788bcb4a25a9454eeed4da57dcb5980af2b704 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 2 Sep 2022 10:10:04 +0900 Subject: [PATCH] Update poetry version to v1.2.0, resolve #1981 --- docker/Dockerfile | 6 +++--- docker/Dockerfile.prod | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8f257c58..521c0a8c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -32,9 +32,9 @@ WORKDIR /tmp COPY backend/pyproject.toml backend/poetry.lock /tmp/ SHELL ["/bin/bash", "-o", "pipefail", "-c"] -RUN pip install --no-cache-dir pip==22.0.4 \ - && curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - \ - && PATH="${PATH}:$HOME/.poetry/bin" \ +RUN pip install -U --no-cache-dir pip==22.2.2 \ + && curl -sSL https://install.python-poetry.org | python - \ + && export PATH="/root/.local/bin:$PATH" \ && poetry export --without-hashes -o /requirements.txt \ && echo "psycopg2-binary==2.8.6" >> /requirements.txt \ && echo "django-heroku==0.3.1" >> /requirements.txt \ diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index b499082c..7f3b9954 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -22,9 +22,9 @@ RUN apt-get update \ unixodbc-dev=2.* \ g++=4:* \ curl \ - && pip install --upgrade --no-cache-dir pip \ - && curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - \ - && PATH="${PATH}:$HOME/.poetry/bin" \ + && pip install --upgrade --no-cache-dir pip==22.2.2 \ + && curl -sSL https://install.python-poetry.org | python - \ + && export PATH="/root/.local/bin:$PATH" \ && poetry config virtualenvs.create false \ && poetry install --no-dev --no-root \ && poetry add psycopg2-binary \