-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (35 loc) · 944 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
35
36
37
38
39
40
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM ${BUILD_FROM}:dev
ENV LANG C.UTF-8
# Copy root filesystem
COPY rootfs /
# Setup base
RUN apk add --no-cache \
build-base \
ffmpeg \
ffmpeg-dev \
libjxl \
libjxl-tools \
libsrtp \
libsrtp-dev \
libvpx \
libvpx-dev \
openssl \
openssl-dev \
opus \
opus-dev \
py3-opencv \
py3-pip \
python3 \
python3-dev \
yq
# Install python3 requirements
# RUN pip3 install --no-cache-dir python-json2yaml==0.1.1
# Download source and untar
WORKDIR /usr/bin
COPY "https://github.com/Minims/SomfyProtect2MQTT/archive/refs/heads/dev.tar.gz" dev.tar.gz
RUN tar -xvf dev.tar.gz && mv /usr/bin/SomfyProtect2MQTT-dev /usr/bin/SomfyProtect2MQTT
# Install python3 requirements
WORKDIR /usr/bin/SomfyProtect2MQTT/somfyProtect2Mqtt
RUN pip3 install --no-cache-dir -r requirements/addon.txt