mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
18 lines
385 B
Docker
18 lines
385 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Setup base
|
|
RUN apk add --no-cache jq curl git openssh-client
|
|
|
|
# Hass.io CLI
|
|
ARG BUILD_ARCH
|
|
ARG CLI_VERSION
|
|
RUN apk add --no-cache curl \
|
|
&& curl -Lso /usr/bin/hassio https://github.com/home-assistant/hassio-cli/releases/download/${CLI_VERSION}/hassio_${BUILD_ARCH} \
|
|
&& chmod a+x /usr/bin/hassio
|
|
|
|
# Copy data
|
|
COPY run.sh /
|
|
|
|
CMD [ "/run.sh" ]
|