Skip to content

Commit 52c6b39

Browse files
committed
chore: fix broken images
1 parent 295ee9e commit 52c6b39

File tree

6 files changed

+4
-151
lines changed

6 files changed

+4
-151
lines changed

apps/kometa/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN apk update && apk upgrade && \
77

88
RUN git clone -b $VERSION https://github.com/Kometa-Team/Kometa.git /source
99

10-
FROM python:3.11-slim-buster
10+
FROM python:3.11-slim-bullseye
1111

1212
ARG BRANCH_NAME=master
1313
ENV BRANCH_NAME=${BRANCH_NAME}

apps/prowlarr/Dockerfile

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
############# importarr
2-
FROM --platform=linux/amd64 golang:1.24-bullseye AS importarr
3-
4-
# Install necessary build tools and SQLite dependencies
5-
RUN apt-get update && apt-get install -y --no-install-recommends \
6-
gcc libc6-dev sqlite3 libsqlite3-dev musl musl-dev musl-tools gcc-multilib git && \
7-
rm -rf /var/lib/apt/lists/*
8-
9-
RUN ln -s /usr/bin/musl-gcc /usr/bin/x86_64-linux-musl-gcc
10-
11-
# Set environment variables
12-
ENV CGO_ENABLED=1 GOOS=linux GOARCH=amd64
13-
14-
RUN git clone https://github.com/elfhosted/importarr.git /app
15-
16-
# Set the working directory
17-
WORKDIR /app
18-
19-
# Copy the Go module files and download dependencies
20-
RUN go mod download
21-
22-
# Build the Go binary
23-
RUN go build -ldflags="-linkmode external -extldflags -static" -o importarr cmd/main.go
24-
251
FROM ghcr.io/ipromknight/alpine:rolling
262

273
ARG TARGETPLATFORM
@@ -62,9 +38,6 @@ RUN \
6238

6339
ENV COMPlus_EnableDiagnostics=0
6440

65-
COPY --from=importarr /app/importarr /usr/local/bin/importarr
66-
RUN chmod +x /usr/local/bin/importarr
67-
6841
USER 568
6942
COPY ./apps/prowlarr/config.xml.tmpl /app/config.xml.tmpl
7043
COPY --chmod=0755 ./apps/prowlarr/promknight-entrypoint.sh /promknight-entrypoint.sh

apps/radarr/Dockerfile

Lines changed: 2 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,3 @@
1-
FROM --platform=linux/amd64 alpine:latest as cloner
2-
3-
RUN apk update && apk upgrade && \
4-
apk add --no-cache git
5-
6-
RUN git clone https://github.com/elfhosted/ffprobe-shim.git /source
7-
8-
FROM --platform=linux/amd64 golang:1.24-alpine AS builder
9-
10-
# Install git for fetching dependencies
11-
RUN apk add --no-cache git
12-
13-
# Set working directory
14-
WORKDIR /app
15-
16-
# Copy go.mod and go.sum first to leverage Docker cache
17-
COPY --from=cloner /source/go.mod go.sum* ./
18-
19-
# Initialize module if go.mod doesn't exist
20-
RUN if [ ! -f go.mod ]; then \
21-
go mod init ffprobe-shim && \
22-
go get github.com/middelink/go-parse-torrent-name; \
23-
else \
24-
go get github.com/middelink/go-parse-torrent-name; \
25-
fi
26-
27-
# Copy source code
28-
COPY --from=cloner /source/*.go ./
29-
30-
# Add a build argument to bust the cache
31-
ARG CACHE_BUSTER=1
32-
RUN echo "Cache Buster: $CACHE_BUSTER" && CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ffprobe
33-
34-
############# importarr
35-
FROM --platform=linux/amd64 golang:1.24-bullseye AS importarr
36-
37-
# Install necessary build tools and SQLite dependencies
38-
RUN apt-get update && apt-get install -y --no-install-recommends \
39-
gcc libc6-dev sqlite3 libsqlite3-dev musl musl-dev musl-tools gcc-multilib git && \
40-
rm -rf /var/lib/apt/lists/*
41-
42-
RUN ln -s /usr/bin/musl-gcc /usr/bin/x86_64-linux-musl-gcc
43-
44-
# Set environment variables
45-
ENV CGO_ENABLED=1 GOOS=linux GOARCH=amd64
46-
47-
RUN git clone https://github.com/elfhosted/importarr.git /app
48-
49-
# Set the working directory
50-
WORKDIR /app
51-
52-
# Copy the Go module files and download dependencies
53-
RUN go mod download
54-
55-
# Build the Go binary
56-
RUN go build -ldflags="-linkmode external -extldflags -static" -o importarr cmd/main.go
57-
581
FROM ghcr.io/ipromknight/alpine:rolling
592

603
ARG TARGETPLATFORM
@@ -94,10 +37,8 @@ RUN \
9437
&& chmod -R 755 /app \
9538
&& rm -rf /tmp/*
9639

97-
RUN mv /app/bin/ffprobe /app/bin/ffprobe-real
98-
COPY --from=builder /app/ffprobe /app/bin/ffprobe
99-
COPY --from=importarr /app/importarr /usr/local/bin/importarr
100-
RUN chmod +x /usr/local/bin/importarr
40+
RUN mv /app/bin/ffprobe /app/bin/ffprobe-real
41+
COPY --chmod=0755 ./apps/radarr/ffprobe /app/bin/ffprobe
10142

10243
USER 568
10344

apps/radarr/ffprobe

2.36 MB
Binary file not shown.

apps/sonarr/Dockerfile

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,3 @@
1-
FROM --platform=linux/amd64 alpine:latest as cloner
2-
3-
RUN apk update && apk upgrade && \
4-
apk add --no-cache git
5-
6-
RUN git clone https://github.com/elfhosted/ffprobe-shim.git /source
7-
8-
############# importarr
9-
FROM --platform=linux/amd64 golang:1.24-bullseye AS importarr
10-
11-
# Install necessary build tools and SQLite dependencies
12-
RUN apt-get update && apt-get install -y --no-install-recommends \
13-
gcc libc6-dev sqlite3 libsqlite3-dev musl musl-dev musl-tools gcc-multilib git && \
14-
rm -rf /var/lib/apt/lists/*
15-
16-
RUN ln -s /usr/bin/musl-gcc /usr/bin/x86_64-linux-musl-gcc
17-
18-
# Set environment variables
19-
ENV CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=x86_64-linux-musl-gcc
20-
21-
RUN git clone https://github.com/elfhosted/importarr.git /app
22-
23-
# Set the working directory
24-
WORKDIR /app
25-
26-
# Copy the Go module files and download dependencies
27-
RUN go mod download
28-
29-
# Build the Go binary
30-
RUN go build -ldflags="-linkmode external -extldflags -static" -o importarr cmd/main.go
31-
32-
####### and the final arr
33-
FROM golang:1.24-alpine AS builder
34-
35-
# Install git for fetching dependencies
36-
RUN apk add --no-cache git
37-
38-
# Set working directory
39-
WORKDIR /app
40-
41-
# Copy go.mod and go.sum first to leverage Docker cache
42-
COPY --from=cloner /source/go.mod go.sum* ./
43-
44-
# Initialize module if go.mod doesn't exist
45-
RUN if [ ! -f go.mod ]; then \
46-
go mod init ffprobe-shim && \
47-
go get github.com/middelink/go-parse-torrent-name; \
48-
else \
49-
go get github.com/middelink/go-parse-torrent-name; \
50-
fi
51-
52-
# Copy source code
53-
COPY --from=cloner /source/*.go ./
54-
55-
# Add a build argument to bust the cache
56-
ARG CACHE_BUSTER=1
57-
RUN echo "Cache Buster: $CACHE_BUSTER" && CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ffprobe
58-
591
FROM ghcr.io/ipromknight/alpine:rolling
602

613
ARG TARGETPLATFORM
@@ -95,10 +37,7 @@ RUN \
9537
&& rm -rf /tmp/*
9638

9739
RUN mv /app/ffprobe /app/ffprobe-real
98-
COPY --from=builder /app/ffprobe /app/ffprobe
99-
100-
COPY --from=importarr /app/importarr /usr/local/bin/importarr
101-
RUN chmod +x /usr/local/bin/importarr
40+
COPY --chmod=0755 ./apps/sonarr/ffprobe /app/ffprobe
10241

10342
USER 568
10443
ENV REAL_FFPROBE_PATH=/app/ffprobe-real

apps/sonarr/ffprobe

2.36 MB
Binary file not shown.

0 commit comments

Comments
 (0)