forked from linuxserver/docker-radarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·48 lines (43 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM lsiobase/mono:LTS
# set version label
ARG BUILD_DATE
ARG VERSION
ARG RADARR_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_CONFIG_HOME="/config/xdg"
RUN \
echo "**** install jq ****" && \
apt-get update && \
apt-get install -y \
jq && \
echo "**** install radarr ****" && \
if [ -z ${RADARR_RELEASE+x} ]; then \
echo "getting tags" \
RADARR_RELEASE=$(curl -sX GET "https://api.github.com/repos/Freaksed/Radarr/releases" \
| jq -r '.[0] | .tag_name'); \
fi && \
echo "using ${RADARR_RELEASE}" \
radarr_url=$(curl -s https://api.github.com/repos/Freaksed/Radarr/releases/tags/"${RADARR_RELEASE}" \
|jq -r '.assets[].browser_download_url' |grep linux) && \
echo "url ${radarr_url}" \
mkdir -p \
/app/radarr/bin && \
curl -o \
/tmp/radar.tar.gz -L \
"${radarr_url}" && \
tar ixzf \
/tmp/radar.tar.gz -C \
/app/radarr/bin --strip-components=1 && \
echo "**** clean up ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 7878
VOLUME /config