mirror of
https://github.com/hassio-addons/addon-airsonos.git
synced 2025-05-04 11:01:31 +00:00
48 lines
1.5 KiB
Docker
Executable file
48 lines
1.5 KiB
Docker
Executable file
ARG BUILD_FROM=hassioaddons/ubuntu-base:4.0.1
|
|
# hadolint ignore=DL3006
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Setup base system
|
|
RUN \
|
|
apt-get update \
|
|
\
|
|
&& apt-get install -y --no-install-recommends \
|
|
libssl1.0.0=1.0.2n-1ubuntu5.3 \
|
|
\
|
|
&& rm -fr \
|
|
/tmp/* \
|
|
/var/{cache,log}/* \
|
|
/var/lib/apt/lists/*
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
|
|
# Add airsonos binary
|
|
ARG BUILD_ARCH=amd64
|
|
COPY bin/airsonos-${BUILD_ARCH} /usr/bin/airsonos
|
|
|
|
# Build arguments
|
|
ARG BUILD_DATE
|
|
ARG BUILD_REF
|
|
ARG BUILD_VERSION
|
|
|
|
# Labels
|
|
LABEL \
|
|
io.hass.name="AirSonos" \
|
|
io.hass.description="AirPlay capabilities for your Sonos (and UPnP) devices" \
|
|
io.hass.arch="${BUILD_ARCH}" \
|
|
io.hass.type="addon" \
|
|
io.hass.version=${BUILD_VERSION} \
|
|
maintainer="Franck Nijhof <frenck@addons.community>" \
|
|
org.label-schema.description="AirPlay capabilities for your Sonos (and UPnP) devices" \
|
|
org.label-schema.build-date=${BUILD_DATE} \
|
|
org.label-schema.name="AirSonos" \
|
|
org.label-schema.schema-version="1.0" \
|
|
org.label-schema.url="https://community.home-assistant.io/t/community-hass-io-add-on-airsonos/36796?u=frenck" \
|
|
org.label-schema.usage="https://github.com/hassio-addons/addon-airsonos/tree/master/README.md" \
|
|
org.label-schema.vcs-ref=${BUILD_REF} \
|
|
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-airsonos" \
|
|
org.label-schema.vendor="Community Hass.io Add-ons"
|