Skip to content

Commit 71064cc

Browse files
committed
Add sonarr image
1 parent 1bde042 commit 71064cc

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

images/sonarr/Dockerfile

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM golang:latest as builder
2+
3+
ARG TARGETARCH
4+
ARG VERSION
5+
6+
# Install chisel and build rootfs with sonarr dependencies
7+
RUN \
8+
go install github.com/canonical/chisel/cmd/chisel@latest \
9+
&& mkdir /rootfs \
10+
&& chisel cut \
11+
--release ubuntu-24.04 \
12+
--root /rootfs \
13+
base-files_base \
14+
base-files_release-info \
15+
base-passwd_data \
16+
ca-certificates_data \
17+
dotnet-runtime-8.0_libs \
18+
libsqlite3-0_libs
19+
20+
# Download sonarrc
21+
RUN \
22+
case "${TARGETARCH}" in \
23+
'amd64') export ARCH='x64' ;; \
24+
'arm64') export ARCH='arm64' ;; \
25+
esac \
26+
&& curl -L "https://github.com/Sonarr/Sonarr/releases/download/v${VERSION}/Sonarr.main.${VERSION}.linux-${ARCH}.tar.gz" \
27+
| tar xzf - -C / \
28+
&& rm -rf /Sonarr/Sonarr.Update
29+
30+
FROM scratch
31+
COPY --from=builder /rootfs /
32+
COPY --from=builder /Sonarr /Sonarr
33+
34+
ENTRYPOINT ["/Sonarr/Sonarr", "--nobrowser", "--data=/config"]

images/sonarr/version.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
curl -s "https://api.github.com/repos/Sonarr/Sonarr/releases/latest" | jq -r '.name'

0 commit comments

Comments
 (0)