generated from home-assistant/addons-example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
45 lines (41 loc) · 1.36 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
ARG BUILD_FROM
FROM ${BUILD_FROM}
# Install requirements for add-on
WORKDIR /usr/src
RUN \
apk add --no-cache \
nginx \
python3 \
py3-pip \
py3-setuptools \
py3-wheel \
&& pip3 install --no-cache-dir --upgrade pip \
'bacpypes3<=0.0.98' \
'pydantic<=1.10.17' \
'fastapi<=0.108.0' \
'jinja2<=3.1.4' \
'uvicorn<=0.30.1' \
'websockets<=12.0' \
'python-multipart<=0.0.9' \
'requests<=2.32.3 ' \
'backoff<=2.2.1' \
'psutil<=6.0.0'
WORKDIR /
COPY rootfs /
LABEL \
io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Bepacom B.V. <[email protected]>" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Bepacom B.V." \
org.opencontainers.image.authors="Bepacom B.V. <[email protected]>" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.url="https://github.com/Bepacom-Raalte/bepacom-HA-Addons" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}