docker-lidarr/Dockerfile

41 lines
918 B
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/mono:xenial
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ARG LIDARR_BRANCH="nightly"
ENV XDG_CONFIG_HOME="/config/xdg"
RUN \
echo "**** install jq ****" && \
apt-get update && \
apt-get install -y \
jq && \
echo "**** install lidarr ****" && \
mkdir -p /app/lidarr && \
lidarr_url=$(curl "https://services.lidarr.audio/v1/update/${LIDARR_BRANCH}/changes?os=linux" \
| jq -r '.[0].url') && \
curl -o \
/tmp/lidarr.tar.gz -L \
"${lidarr_url}" && \
tar ixzf \
/tmp/lidarr.tar.gz -C \
/app/lidarr --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 8686
VOLUME /config /downloads /music