From 403e18208b6293affdad9fcbcd465fbea7d8bcd3 Mon Sep 17 00:00:00 2001 From: Hadrien Patte Date: Mon, 22 Apr 2024 00:11:07 +0200 Subject: [PATCH] Parametrize chisel and golang version --- images/prowlarr/Dockerfile | 6 ++++-- images/radarr/Dockerfile | 6 ++++-- images/sonarr/Dockerfile | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/images/prowlarr/Dockerfile b/images/prowlarr/Dockerfile index bd1cbae..42ce21e 100644 --- a/images/prowlarr/Dockerfile +++ b/images/prowlarr/Dockerfile @@ -1,11 +1,13 @@ -FROM golang:latest as builder +ARG GOLANG_VERSION +FROM golang:$GOLANG_VERSION as builder ARG TARGETARCH ARG VERSION +ARG CHISEL_VERSION # Install chisel and build rootfs with prowlarr dependencies RUN \ - go install github.com/canonical/chisel/cmd/chisel@latest \ + go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ && mkdir /rootfs \ && chisel cut \ --release ubuntu-24.04 \ diff --git a/images/radarr/Dockerfile b/images/radarr/Dockerfile index cf9436b..c77e9c2 100644 --- a/images/radarr/Dockerfile +++ b/images/radarr/Dockerfile @@ -1,11 +1,13 @@ -FROM golang:latest as builder +ARG GOLANG_VERSION +FROM golang:$GOLANG_VERSION as builder ARG TARGETARCH ARG VERSION +ARG CHISEL_VERSION # Install chisel and build rootfs with radarr dependencies RUN \ - go install github.com/canonical/chisel/cmd/chisel@latest \ + go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ && mkdir /rootfs \ && chisel cut \ --release ubuntu-24.04 \ diff --git a/images/sonarr/Dockerfile b/images/sonarr/Dockerfile index 7fde57c..1fc8d11 100644 --- a/images/sonarr/Dockerfile +++ b/images/sonarr/Dockerfile @@ -1,11 +1,13 @@ -FROM golang:latest as builder +ARG GOLANG_VERSION +FROM golang:$GOLANG_VERSION as builder ARG TARGETARCH ARG VERSION +ARG CHISEL_VERSION # Install chisel and build rootfs with sonarr dependencies RUN \ - go install github.com/canonical/chisel/cmd/chisel@latest \ + go install github.com/canonical/chisel/cmd/chisel@${CHISEL_VERSION} \ && mkdir /rootfs \ && chisel cut \ --release ubuntu-24.04 \