-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
50 lines (44 loc) · 1.49 KB
/
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
41
42
43
44
45
46
47
48
49
50
ARG BUILD_FROM=hassioaddons/base:latest
FROM ${BUILD_FROM}
ENV LANG C.UTF-8
# COPY rootfs /
COPY run.sh /
RUN chmod a+x /run.sh
RUN apk add --no-cache \
python3 \
python3-dev \
py3-pip \
py3-wheel \
git \
gcc \
g++ \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
musl \
musl-dev
RUN git clone -b master https://github.com/edc1/cbus.git && cd cbus && pip3 install -r requirements.txt && python3 setup.py install
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
LABEL \
io.hass.name="CBus MQTT Bridge" \
io.hass.description="Connect a Clpsal CBus network to an MQTT broker" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="CMQTTD <[email protected]>" \
org.opencontainers.image.title="CBus MQTT Bridge" \
org.opencontainers.image.description="Connect a Clpsal CBus network to an MQTT broker" \
org.opencontainers.image.vendor="Home Assistant Community Add-ons" \
org.opencontainers.image.authors="CMQTTD <[email protected]>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://addons.community" \
org.opencontainers.image.source="https://github.com/hassio-addons/cmqttd" \
org.opencontainers.image.documentation="https://github.com/hassio-addons/cmqttd/blob/master/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
CMD [ "/run.sh" ]