Browse Source

Update poetry version to v1.2.0, resolve #1981

pull/1982/head
Hironsan 2 years ago
parent
commit
03788bcb4a
2 changed files with 6 additions and 6 deletions
  1. 6
      docker/Dockerfile
  2. 6
      docker/Dockerfile.prod

6
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 \

6
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 \

Loading…
Cancel
Save