2018-07-14 23:53:05 +02:00
|
|
|
FROM alpine:latest
|
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
|
|
|
ENV LANG "en_US.UTF-8"
|
|
|
|
ENV LANGUAGE "en_US.UTF-8"
|
|
|
|
ENV TERM "xterm"
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
bash \
|
|
|
|
ca-certificates \
|
|
|
|
libmediainfo \
|
|
|
|
mono \
|
|
|
|
tar \
|
|
|
|
--repository https://dl-4.alpinelinux.org/alpine/edge/testing
|
|
|
|
|
|
|
|
# https://github.com/Radarr/Radarr/releases
|
2019-05-25 22:41:50 +02:00
|
|
|
ENV RADARR_VERSION 0.2.0.1344
|
2018-07-14 23:53:05 +02:00
|
|
|
RUN mkdir -p /opt/radarr \
|
2019-03-08 17:09:18 +01:00
|
|
|
&& wget "https://github.com/Radarr/Radarr/releases/download/v${RADARR_VERSION}/Radarr.develop.${RADARR_VERSION}.linux.tar.gz" -O /tmp/radarr.tar.gz \
|
2018-07-14 23:53:05 +02:00
|
|
|
&& tar -xzvf /tmp/radarr.tar.gz -C /opt/radarr --strip-components 1 \
|
|
|
|
&& rm -rf /tmp/radarr.tar.gz
|
|
|
|
|
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
|
|
|
|
# Create user and change ownership
|
|
|
|
RUN addgroup -g 666 -S radarr \
|
|
|
|
&& adduser -u 666 -SHG radarr radarr \
|
|
|
|
&& mkdir -p /config \
|
|
|
|
&& chown -R radarr:radarr /opt/radarr /config
|
|
|
|
|
|
|
|
WORKDIR /opt/radarr
|
|
|
|
|
|
|
|
USER radarr
|
|
|
|
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|