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 dd621df commit 9e00595
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 @@ -3,7 +3,8 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
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 ./app/pyproject.toml ./app/poetry.lock* /app/

Expand Down

0 comments on commit 9e00595

Please sign in to comment.