Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Commit

Permalink
🔨 Refactor add-on to be compatible with new base image
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Apr 20, 2019
1 parent 6316379 commit b660efe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lutron-cert/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lutron-cert/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
requests==2.21.0
Flask==1.0.2
cryptography==2.6.1

0 comments on commit b660efe

Please sign in to comment.