Skip to content

Commit

Permalink
Parametrize chisel and golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Apr 21, 2024
1 parent 261e743 commit 403e182
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions images/prowlarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
6 changes: 4 additions & 2 deletions images/radarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
6 changes: 4 additions & 2 deletions images/sonarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 403e182

Please sign in to comment.