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 \