diff options
author | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2023-05-07 19:44:00 +0530 |
---|---|---|
committer | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2023-05-07 22:01:55 +0530 |
commit | 8972880b77de642708551d24cf13e18898e4e39f (patch) | |
tree | 34d52b9a932cede32fe1b0c10fca0dfab55b2f02 /docker-files/alpine.Dockerfile | |
parent | 5dcd2ceb70ae73cf3df6f3be2be25646bace56f9 (diff) |
chg: Dockerfile - fix alpine ARM build failures for cryptography
Issue: #2368
Diffstat (limited to 'docker-files/alpine.Dockerfile')
-rw-r--r-- | docker-files/alpine.Dockerfile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/docker-files/alpine.Dockerfile b/docker-files/alpine.Dockerfile index 2b71b2ca..0c470839 100644 --- a/docker-files/alpine.Dockerfile +++ b/docker-files/alpine.Dockerfile @@ -29,8 +29,10 @@ RUN apk add --no-cache \ smartmontools \ iputils \ tzdata \ - # Required for 'cryptography' dependency - gcc libffi-dev openssl-dev cargo pkgconfig + # Required for 'cryptography' dependency of optional requirement 'cassandra-driver' \ + # Refer: https://cryptography.io/en/latest/installation/#alpine \ + # `git` required to clone cargo crates (dependencies) + gcc libffi-dev openssl-dev cargo pkgconfig git ############################################################################## # Install the dependencies beforehand to make them cacheable @@ -58,9 +60,14 @@ RUN pip3 install --no-cache-dir --user glances FROM build as buildOptionalRequirements ARG PYTHON_VERSION +# Required for optional dependency cassandra-driver +ENV CASS_DRIVER_NO_CYTHON=1 +# See issue 2368 +ENV CARGO_NET_GIT_FETCH_WITH_CLI=true + COPY requirements.txt . COPY optional-requirements.txt . -RUN CASS_DRIVER_NO_CYTHON=1 pip3 install --no-cache-dir --user -r optional-requirements.txt +RUN pip3 install --no-cache-dir --user -r optional-requirements.txt ############################################################################## # full image |