Install poetry from alpine repositories

This commit is contained in:
Georg Krause 2022-06-11 23:57:17 +02:00
parent e8b41fd06f
commit be02ebfb52
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 2 deletions

View File

@ -4,8 +4,7 @@ FROM alpine:3.16 as pre-build
# dependencies. This is only required until alpine 3.16 is released, since this # dependencies. This is only required until alpine 3.16 is released, since this
# allows us to install poetry as package. # allows us to install poetry as package.
RUN apk add --no-cache python3 py3-cryptography py3-pip && \ RUN apk add --no-cache python3 py3-cryptography py3-pip poetry
pip3 install poetry
COPY pyproject.toml poetry.lock / COPY pyproject.toml poetry.lock /
RUN poetry export --without-hashes > requirements.txt RUN poetry export --without-hashes > requirements.txt
RUN poetry export --dev --without-hashes > dev-requirements.txt RUN poetry export --dev --without-hashes > dev-requirements.txt