Browse Source
Merge pull request #1982 from doccano/fix/1981
Update poetry version to v1.2.0
pull/1986/head
Hiroki Nakayama
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
6 deletions
-
docker/Dockerfile
-
docker/Dockerfile.prod
|
|
@ -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 \ |
|
|
|
|
|
@ -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 \ |
|
|
|