Skip to content

Commit d44f0fe

Browse files
committed
feat: add whisparr image
1 parent 0bd8c2d commit d44f0fe

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

apps/whisparr-v3/Dockerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM docker.io/library/alpine:3.23
4+
ARG TARGETARCH
5+
ARG VENDOR
6+
ARG VERSION
7+
8+
ENV COMPlus_EnableDiagnostics=0
9+
10+
USER root
11+
WORKDIR /app
12+
13+
RUN \
14+
apk add --no-cache \
15+
bash \
16+
ca-certificates \
17+
catatonit \
18+
coreutils \
19+
curl \
20+
icu-libs \
21+
jq \
22+
libintl \
23+
nano \
24+
sqlite-libs \
25+
tzdata \
26+
&& mkdir -p /app/bin \
27+
&& curl -fsSL "https://github.com/Whisparr/Whisparr-Eros/releases/download/v${VERSION}/Whisparr.eros.${VERSION}.linux-musl-${TARGETARCH/amd64/x64}.tar.gz" \
28+
| tar xzf - -C /app/bin --strip-components=1 \
29+
&& printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[%s](https://github.com/%s)\n" "${VERSION}" "${VENDOR}" "${VENDOR}" > /app/package_info \
30+
&& chown -R root:root /app && chmod -R 755 /app \
31+
&& rm -rf /tmp/* /app/bin/Whisparr.Update
32+
33+
COPY . /
34+
35+
USER nobody:nogroup
36+
WORKDIR /config
37+
VOLUME ["/config"]
38+
39+
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]
40+
41+
LABEL org.opencontainers.image.source="https://github.com/Whisparr/Whisparr-Eros"

apps/whisparr-v3/docker-bake.hcl

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
target "docker-metadata-action" {}
2+
3+
variable "APP" {
4+
default = "whisparr"
5+
}
6+
7+
variable "VERSION" {
8+
// renovate: datasource=github-releases depName=whisparr versioning=loose
9+
default = "3.3.2-release.604"
10+
}
11+
12+
variable "SOURCE" {
13+
default = "https://github.com/Whisparr/Whisparr-Eros"
14+
}
15+
16+
group "default" {
17+
targets = ["image-local"]
18+
}
19+
20+
target "image" {
21+
inherits = ["docker-metadata-action"]
22+
args = {
23+
VERSION = "${VERSION}"
24+
}
25+
labels = {
26+
"org.opencontainers.image.source" = "${SOURCE}"
27+
}
28+
}
29+
30+
target "image-local" {
31+
inherits = ["image"]
32+
output = ["type=docker"]
33+
tags = ["${APP}:${VERSION}"]
34+
}
35+
36+
target "image-all" {
37+
inherits = ["image"]
38+
platforms = [
39+
"linux/amd64",
40+
"linux/arm64"
41+
]
42+
}

apps/whisparr-v3/entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
exec \
4+
/app/bin/Whisparr \
5+
--nobrowser \
6+
--data=/config \
7+
"$@"

0 commit comments

Comments
 (0)