Skip to content

Commit

Permalink
ci: disable poetry installer.parallel
Browse files Browse the repository at this point in the history
Doing poetry install causes CPU usage to reach ~100% for an instance that has only one CPU.

Possible relevant issues
python-poetry/poetry#3756
python-poetry/poetry#3010
  • Loading branch information
paxcodes committed Jun 4, 2021
1 parent f62bdcd commit 7f62de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ WORKDIR /app/
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
poetry config virtualenvs.create false && \
poetry config installer.parallel false

COPY ./backend/pyproject.toml ./backend/poetry.lock /app/

Expand Down

0 comments on commit 7f62de5

Please sign in to comment.