diff --git a/lutron-cert/Dockerfile b/lutron-cert/Dockerfile index 96ceee0..8e16fff 100644 --- a/lutron-cert/Dockerfile +++ b/lutron-cert/Dockerfile @@ -10,12 +10,24 @@ COPY requirements.txt /tmp/ # Setup base RUN \ - apk add --no-cache \ - python3=3.6.8-r1 \ - py3-cryptography=2.4.2-r2 \ + apk add --no-cache --virtual .build-dependencies \ + gcc=8.3.0-r0 \ + libc-dev=0.7.1-r0 \ + libffi-dev=3.2.1-r6 \ + openssl-dev=1.1.1b-r1 \ + \ + && apk add --no-cache \ dbus=1.10.24-r1 \ \ - && pip3 install --no-cache-dir -r /tmp/requirements.txt + && pip3 install --no-cache-dir -r /tmp/requirements.txt \ + \ + && find /usr/local \ + \( -type d -a -name test -o -name tests -o -name '__pycache__' \) \ + -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ + -exec rm -rf '{}' + \ + \ + && apk del --purge .build-dependencies + # Build arugments ARG BUILD_ARCH diff --git a/lutron-cert/requirements.txt b/lutron-cert/requirements.txt index deb9117..2bcd4ee 100644 --- a/lutron-cert/requirements.txt +++ b/lutron-cert/requirements.txt @@ -1,2 +1,3 @@ requests==2.21.0 Flask==1.0.2 +cryptography==2.6.1