mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
26 lines
628 B
Docker
26 lines
628 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Setup base
|
|
ARG BUILD_ARCH
|
|
ARG CONFIGURATOR_VERSION
|
|
RUN \
|
|
apk add --no-cache \
|
|
git \
|
|
openssh-client \
|
|
py3-pip \
|
|
python3 \
|
|
&& pip3 install \
|
|
--no-cache-dir \
|
|
--prefer-binary \
|
|
--find-links "https://wheels.home-assistant.io/alpine-3.14/${BUILD_ARCH}/" \
|
|
hass-configurator=="${CONFIGURATOR_VERSION}" \
|
|
\
|
|
&& find /usr/local \
|
|
\( -type d -a -name test -o -name tests -o -name '__pycache__' \) \
|
|
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
|
|
-exec rm -rf '{}' +
|
|
|
|
# Copy data
|
|
COPY rootfs /
|