use the recommended way to install poetry (#1261)

This commit is contained in:
Son Nguyen Kim 2022-09-01 15:28:33 +02:00 committed by GitHub
parent ae2cbf98e2
commit 2b389cbe53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ COPY poetry.lock pyproject.toml ./
RUN pip install -U pip \
&& apt-get update \
&& apt install -y curl netcat gcc python3-dev gnupg git libre2-dev \
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - \
&& curl -sSL https://install.python-poetry.org | python3 - \
# Remove curl and netcat from the image
&& apt-get purge -y curl netcat \
# Run poetry