Skip to content

Commit

Permalink
Add radarr Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Mar 24, 2024
1 parent 5995a3e commit 2d3832c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions images/radarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM golang:latest as builder

ARG TARGETARCH
ARG VERSION

# Install chisel and build rootfs with radarr dependencies
RUN \
go install github.com/canonical/chisel/cmd/chisel@latest \
&& mkdir /rootfs && chisel cut \
--release ubuntu-24.04 \
--root /rootfs \
base-files_base \
base-files_release-info \
base-passwd_data \
ca-certificates_data \
dotnet-runtime-8.0_libs \
openssl_config \
libsqlite3-0_libs

# Download radarr
RUN \
mkdir -p /radarr /config \
&& case "${TARGETARCH}" in \
'amd64') export ARCH='x64' ;; \
'arm64') export ARCH='arm64' ;; \
esac \
&& curl -fsSL "https://github.com/Radarr/Radarr/releases/download/v${VERSION}/Radarr.master.${VERSION}.linux-core-${ARCH}.tar.gz" \
| tar xzf - -C /radarr --strip-components=1 \
&& rm -rf /radarr/Radarr.Update


FROM scratch
COPY --from=builder /rootfs /
COPY --from=builder /radarr /radarr

ENTRYPOINT ["/radarr/Radarr", "--nobrowser", "--data=/config"]
3 changes: 3 additions & 0 deletions images/radarr/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
VERSION=$(curl -s "https://radarr.servarr.com/v1/update/master/changes?os=linux&runtime=netcore" | jq --raw-output '.[0].version')
echo ${VERSION}

0 comments on commit 2d3832c

Please sign in to comment.