-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (29 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG BUILD_FROM=hassioaddons/base:latest
FROM ${BUILD_FROM}
# Build arguments
ARG BUILD_VERSION
ARG BUILD_ARCH=amd64
WORKDIR /usr/src
RUN apk add --no-cache \
python3 \
py3-pip \
musl \
libssl1.1 libcrypto1.1 \
&& apk add --no-cache --virtual .build-deps \
build-base \
python3-dev \
git \
libffi-dev openssl-dev \
# ha-zwave-network
&& git clone --depth=1 https://github.com/elad-bar/ha-zwave-network.git \
&& cd ha-zwave-network \
&& pip install --no-cache-dir requests asyncws aiofiles flask pyopenssl \
&& mkdir -p /web \
&& find . -print | sed '/.git|Dockerfile/d' | cpio -pvdm / \
&& apk del .build-deps \
&& cd .. \
&& rm -rf /usr/src/ha-zwave-network.git \
&& mkdir /debug
COPY data/run.sh /
WORKDIR /
ENTRYPOINT [ "/run.sh" ]