2022-08-23 19:15:00 -04:00
|
|
|
ARG RADARR_VERSION=4.1.0.6175
|
2022-08-23 07:33:14 -04:00
|
|
|
#FROM golang:bullseye AS builder
|
|
|
|
#ARG SHOUTRRR_VERSION
|
|
|
|
#RUN git clone -b ${SHOUTRRR_VERSION} --depth 1 https://github.com/containrrr/shoutrrr.git ./shoutrrr
|
|
|
|
#RUN cd ./shoutrrr && \
|
|
|
|
# mkdir /output && \
|
|
|
|
# go build -o /output ./shoutrrr
|
|
|
|
|
|
|
|
FROM debian:10-slim
|
2022-08-23 19:15:00 -04:00
|
|
|
ARG RADARR_VERSION
|
2022-08-23 07:33:14 -04:00
|
|
|
WORKDIR /root
|
|
|
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
|
|
|
# Install tools to add extra repos
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y --no-install-recommends install \
|
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
jq \
|
|
|
|
ca-certificates \
|
|
|
|
gnupg \
|
|
|
|
apt-transport-https \
|
|
|
|
tar \
|
|
|
|
dirmngr
|
|
|
|
# Mediainfo repo install
|
2022-08-23 19:15:00 -04:00
|
|
|
RUN curl -O https://mediaarea.net/repo/deb/repo-mediaarea_1.0-20_all.deb \
|
2022-08-23 07:33:14 -04:00
|
|
|
&& dpkg -i repo-mediaarea_1.0-20_all.deb \
|
|
|
|
&& apt-get update
|
|
|
|
# Install dependancies
|
|
|
|
RUN apt-get -y install \
|
|
|
|
sqlite3 \
|
|
|
|
mediainfo \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create the user that will run the service
|
2022-08-23 19:15:00 -04:00
|
|
|
RUN useradd -UM -u 1000 -d /app -s /bin/bash radarr
|
2022-08-23 07:33:14 -04:00
|
|
|
# Download and extract the package
|
|
|
|
RUN mkdir -p /app/bin \
|
|
|
|
&& mkdir /config \
|
2022-08-23 19:15:00 -04:00
|
|
|
&& curl -fsSL "https://radarr.servarr.com/v1/update/master/updatefile?version=${RADARR_VERSION}&os=linux&runtime=netcore&arch=x64" | tar xzf - -C /app/bin --strip-components=1 \
|
|
|
|
&& rm -rf /app/bin/Radarr.Update \
|
|
|
|
&& echo -e "PackageVersion=${RADARR_VERSION}\nPackageAuthor=Michael\nUpdateMethod=Docker\nBranch=master" > "/app/package_info" \
|
2022-08-23 07:50:56 -04:00
|
|
|
&& chmod -R u=rwX,go=rX /app \
|
2022-08-23 19:15:00 -04:00
|
|
|
&& chown -R radarr /app \
|
|
|
|
&& chown -R radarr /config
|
2022-08-23 07:33:14 -04:00
|
|
|
# Set startup conditions
|
|
|
|
VOLUME /config
|
2022-08-23 19:15:00 -04:00
|
|
|
EXPOSE 7878
|
|
|
|
USER radarr
|
2022-08-23 07:33:14 -04:00
|
|
|
WORKDIR /app
|
2022-08-23 19:15:00 -04:00
|
|
|
ENTRYPOINT ["/app/bin/Radarr"]
|
2022-08-23 07:33:14 -04:00
|
|
|
CMD ["--nobrowser", "--data=/config"]
|
|
|
|
|
|
|
|
|
|
|
|
|