From 765c9d2483855ee8446dc3ddc86383507359787e Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 30 Nov 2023 15:30:46 +0100 Subject: [PATCH] dockerfile: correctly select Go architecture --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c91a18c..acc224d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ FROM pelias/libpostal_baseimage as builder RUN apt-get update && apt-get install -y make pkg-config build-essential # install go -RUN curl https://dl.google.com/go/go1.11.linux-amd64.tar.gz | tar -C /usr/local -xz +ARG TARGETPLATFORM +RUN curl "https://dl.google.com/go/go1.11.linux-${TARGETPLATFORM##*/}.tar.gz" | tar -C /usr/local -xz ENV PATH="$PATH:/usr/local/go/bin" # bring in and build project go code