generated from home-assistant/addons-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (18 loc) · 786 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
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
# Execute during the build of the image
ARG TEMPIO_VERSION BUILD_ARCH
RUN \
curl -sSLf -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"
RUN \
apk add --no-cache --virtual .build-dependencies \
build-base linux-headers gcc python3-dev git cargo
# Copy root filesystem
COPY rootfs /
RUN git clone --depth 1 --branch v2.1.4 https://gitlab.com/DeerMaximum/ta-coe.git /opt/ta-coe
WORKDIR /opt/ta-coe
RUN AIOHTTP_NO_EXTENSIONS=1 pip install -r requirements.txt
RUN apk del --no-cache --purge .build-dependencies
RUN chmod a+x /etc/services.d/ta_coe/run