media-radarr/Dockerfile

54 lines
1.6 KiB
Docker
Raw Permalink Normal View History

2023-03-21 11:37:40 -04:00
ARG RADARR_VERSION=4.3.2.6857
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
2023-03-21 11:37:40 -04:00
RUN curl -O https://mediaarea.net/repo/deb/repo-mediaarea_1.0-21_all.deb \
&& dpkg -i repo-mediaarea_1.0-21_all.deb \
2022-08-23 07:33:14 -04:00
&& 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
2023-03-21 11:37:40 -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 \
2023-03-21 11:37:40 -04:00
&& chown -R root /app \
&& chown -R root /config
2022-08-23 07:33:14 -04:00
# Set startup conditions
VOLUME /config
2022-08-23 19:15:00 -04:00
EXPOSE 7878
2023-03-21 11:37:40 -04:00
# 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"]