sonarr wip
This commit is contained in:
parent
11bb2d519e
commit
8db5894693
42
sonarr/Dockerfile
Normal file
42
sonarr/Dockerfile
Normal file
@ -0,0 +1,42 @@
|
||||
ARG SONARR_VERSION=4.0.12.2823
|
||||
|
||||
FROM ubuntu:24.04 AS base
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
curl \
|
||||
sqlite3 \
|
||||
libicu74 && \
|
||||
apt clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM base AS download
|
||||
ARG SONARR_VERSION
|
||||
|
||||
RUN mkdir /download /radarr
|
||||
|
||||
WORKDIR /download
|
||||
|
||||
RUN curl -OL https://github.com/Sonarr/Sonarr/releases/download/v${SONARR_VERSION}/Sonarr.main.${SONARR_VERSION}.linux-x64.tar.gz && \
|
||||
tar -xzvf /download/Sonarr.main.${SONARR_VERSION}.linux-x64.tar.gz -C /sonarr
|
||||
|
||||
FROM base
|
||||
|
||||
RUN mkdir -p /opt /cert /media /config && \
|
||||
chown ubuntu:ubuntu /cert /media /config
|
||||
|
||||
VOLUME /cert
|
||||
VOLUME /config
|
||||
VOLUME /media
|
||||
|
||||
COPY --from=download /sonarr/Sonarr /opt/sonarr
|
||||
|
||||
USER ubuntu
|
||||
|
||||
WORKDIR /config
|
||||
|
||||
ENTRYPOINT ["/opt/sonarr/Sonarr"]
|
||||
CMD ["-nobrowser", "-data=/config"]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user