-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
35 lines (32 loc) · 1.05 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
ARG BUILD_FROM
FROM $BUILD_FROM
WORKDIR /data
# Install requirements for add-on
RUN \
apk add --no-cache \
python3 py3-pip
RUN pip3 install --no-cache-dir bcg
ADD run.sh /run.sh
RUN chmod a+x /run.sh
CMD ["/run.sh"]
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="ha-hardwario" \
io.hass.description="home assistant ha-hardwario add-on" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="MarianRychtecky" \
org.label-schema.description="Home Assistant ha-hardwario add-on" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="ha-hardwario" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://github.com/MarianRychtecky/ha-hardwario" \
org.label-schema.usage="https://github.com/MarianRychtecky/ha-hardwario/README.md" \
org.label-schema.vcs-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://github.com/MarianRychtecky/ha-hardwario" \
org.label-schema.vendor="Hass.io Addons"