File tree Expand file tree Collapse file tree 3 files changed +90
-0
lines changed
Expand file tree Collapse file tree 3 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 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\n PackageVersion=%s\n PackageAuthor=[%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"
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ exec \
4+ /app/bin/Whisparr \
5+ --nobrowser \
6+ --data=/config \
7+ " $@ "
You can’t perform that action at this time.
0 commit comments