From 045a85535cfeebb4ba1b57960e1c7b1f2654d1ba Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 11 Nov 2024 22:49:51 -0800 Subject: [PATCH] Use peer-finder with correct arch Signed-off-by: Tamal Saha --- Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e3f697..606a5f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM debian:bookworm as builder +FROM debian:12 as builder + +ARG TARGETOS +ARG TARGETARCH +ARG PEER_FINDER_VERSION=v1.3.0 ENV DEBIAN_FRONTEND noninteractive ENV DEBCONF_NONINTERACTIVE_SEEN true @@ -22,9 +26,13 @@ RUN set -x \ && apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl unzip RUN set -x \ - && curl -fsSL -o peer-finder https://github.com/kmodules/peer-finder/releases/download/v1.0.1-ac/peer-finder \ + && curl -fsSL -o peer-finder.tar.gz https://github.com/kmodules/peer-finder/releases/download/${PEER_FINDER_VERSION}/peer-finder-${TARGETOS}-${TARGETARCH}.tar.gz \ + && tar -xzvf peer-finder.tar.gz \ + && mv peer-finder-${TARGETOS}-${TARGETARCH} peer-finder \ && chmod 755 peer-finder + + FROM alpine:latest RUN apk add --no-cache openssl gettext