-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71064cc
commit ca34eaa
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM golang:latest as builder | ||
|
||
ARG TARGETARCH | ||
ARG VERSION | ||
|
||
# Install chisel and build rootfs with prowlarr 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 \ | ||
libsqlite3-0_libs | ||
|
||
# Download prowlarr | ||
RUN \ | ||
case "${TARGETARCH}" in \ | ||
'amd64') export ARCH='x64' ;; \ | ||
'arm64') export ARCH='arm64' ;; \ | ||
esac \ | ||
&& curl -L "https://github.com/Prowlarr/Prowlarr/releases/download/v${VERSION}/Prowlarr.master.${VERSION}.linux-core-${ARCH}.tar.gz" \ | ||
| tar xzf - -C / \ | ||
&& rm -rf /Prowlarr/Prowlarr.Update | ||
|
||
FROM scratch | ||
COPY --from=builder /rootfs / | ||
COPY --from=builder /Prowlarr /Prowlarr | ||
|
||
ENTRYPOINT ["/Prowlarr/Prowlarr", "--nobrowser", "--data=/config"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
curl -s "https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest" | jq -r '.name' |