-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (25 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
28 lines (25 loc) · 1.08 KB
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
# https://developers.home-assistant.io/docs/apps/configuration#app-dockerfile
ARG BUILD_FROM=ghcr.io/home-assistant/base:3.23
FROM ${BUILD_FROM}
# Execute during the build of the image
ARG TEMPIO_VERSION=2021.09.0
ARG TARGETARCH
RUN \
if [ -z "${TARGETARCH}" ]; then \
echo "TARGETARCH is not set, please use Docker BuildKit for the build." && exit 1; \
fi \
&& case "${TARGETARCH}" in \
amd64) tempio_arch="amd64" ;; \
arm64) tempio_arch="aarch64" ;; \
*) echo "Unsupported TARGETARCH: ${TARGETARCH}" && exit 1 ;; \
esac \
&& curl -sSLf -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${tempio_arch}"
# Copy root filesystem
COPY rootfs /
LABEL \
io.hass.type="addon" \
org.opencontainers.image.title="Home Assistant App: Example app" \
org.opencontainers.image.description="Example app to use as a blueprint for new apps." \
org.opencontainers.image.source="https://github.com/home-assistant/apps-example" \
org.opencontainers.image.licenses="Apache License 2.0"