ARG BUILD_FROM=ghcr.io/hassio-addons/base:17.1.0 # hadolint ignore=DL3006 FROM ${BUILD_FROM} # Set shell SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Setup base ARG RADARR_VERSION=5.18.4.9674 ARG BUILD_ARCH=amd64 ARG BUILD_VERSION=dev ENV XDG_CONFIG_HOME="/config/xdg" # hadolint ignore=DL3003,DL3042 RUN \ apk add --no-cache \ icu-libs=74.2-r0 \ sqlite-libs=3.48.0-r0 \ xmlstarlet=1.6.1-r2 \ \ && if [ "${BUILD_ARCH}" = "aarch64" ]; then RADARR_ARCH="arm64"; \ elif [ "${BUILD_ARCH}" = "amd64" ]; then RADARR_ARCH="x64"; \ elif [ "${BUILD_ARCH}" = "armv7" ]; then RADARR_ARCH="arm"; fi \ \ && curl -J -L -o /tmp/radarr.tar.gz \ "https://github.com/Radarr/Radarr/releases/download/v${RADARR_VERSION}/Radarr.master.${RADARR_VERSION}.linux-musl-core-${RADARR_ARCH}.tar.gz" \ && mkdir -p /opt/bin \ && tar zxvf \ /tmp/radarr.tar.gz \ --strip 1 -C /opt/bin \ \ && echo -e "UpdateMethod=docker\nBranch=master\nPackageVersion=${BUILD_VERSION}\nPackageAuthor=Home Assistant Community Add-ons" \ > /opt/package_info \ \ && rm -f -r \ /tmp/* \ /opt/bin/Radarr.Update # Copy root filesystem COPY rootfs / # Build arguments ARG BUILD_DATE ARG BUILD_DESCRIPTION ARG BUILD_NAME ARG BUILD_REF ARG BUILD_REPOSITORY # Labels LABEL \ io.hass.name="${BUILD_NAME}" \ io.hass.description="${BUILD_DESCRIPTION}" \ io.hass.arch="${BUILD_ARCH}" \ io.hass.type="addon" \ io.hass.version=${BUILD_VERSION} \ maintainer="Franck Nijhof " \ org.opencontainers.image.title="${BUILD_NAME}" \ org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ org.opencontainers.image.vendor="Home Assistant Community Add-ons" \ org.opencontainers.image.authors="Franck Nijhof " \ org.opencontainers.image.licenses="MIT" \ org.opencontainers.image.url="https://addons.community" \ org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ org.opencontainers.image.created=${BUILD_DATE} \ org.opencontainers.image.revision=${BUILD_REF} \ org.opencontainers.image.version=${BUILD_VERSION}