Update package requirements for docker (#3285)

* Include cargo / rustc in the docker image

- Otherwise cryptography library seems to fail

* Revert cryptography lib to older version

- New version requires rust, adds ~300MB to the image size!
This commit is contained in:
Oliver 2022-07-03 21:44:40 +10:00 committed by GitHub
parent c81043ba42
commit 830ecd5677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -22,7 +22,7 @@ ENV PYTHONUNBUFFERED 1
# Ref: https://github.com/pyca/cryptography/issues/5776 # Ref: https://github.com/pyca/cryptography/issues/5776
ENV CRYPTOGRAPHY_DONT_BUILD_RUST 1 ENV CRYPTOGRAPHY_DONT_BUILD_RUST 1
ENV INVENTREE_LOG_LEVEL="INFO" ENV INVENTREE_LOG_LEVEL="WARNING"
ENV INVENTREE_DOCKER="true" ENV INVENTREE_DOCKER="true"
# InvenTree paths # InvenTree paths

View File

@ -1,6 +1,7 @@
# Please keep this list sorted - if you pin a version provide a reason # Please keep this list sorted - if you pin a version provide a reason
Django<4 # Django package Django<4 # Django package
coreapi # API documentation for djangorestframework coreapi # API documentation for djangorestframework
cryptography==3.4.8 # Core cryptographic functionality
django-allauth # SSO for external providers via OpenID django-allauth # SSO for external providers via OpenID
django-allauth-2fa # MFA / 2FA django-allauth-2fa # MFA / 2FA
django-cleanup # Automated deletion of old / unused uploaded files django-cleanup # Automated deletion of old / unused uploaded files

View File

@ -30,8 +30,10 @@ coreapi==2.3.3
# via -r requirements.in # via -r requirements.in
coreschema==0.0.4 coreschema==0.0.4
# via coreapi # via coreapi
cryptography==37.0.2 cryptography==3.4.8
# via pyjwt # via
# -r requirements.in
# pyjwt
cssselect2==0.6.0 cssselect2==0.6.0
# via weasyprint # via weasyprint
defusedxml==0.7.1 defusedxml==0.7.1