generated from home-assistant/addons-example
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathDockerfile
31 lines (27 loc) · 966 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
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
ENV VCONTROLD_VERSION "v0.98.12"
# 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 \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y build-essential git cmake telnet libxml2-dev mosquitto-clients && \
git clone --depth 1 --branch $VCONTROLD_VERSION https://github.com/openv/vcontrold.git && \
cd vcontrold && \
mkdir build && \
cd build && \
cmake -DMANPAGES=OFF .. && \
make install && \
make clean && \
cd .. && \
cd .. && \
apt-get purge -y --auto-remove build-essential git cmake && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* vcontrold
# Copy root filesystem
COPY rootfs /