Skip to content

Commit

Permalink
dockerfile: correctly select Go architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 30, 2023
1 parent f34322e commit 765c9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 765c9d2

Please sign in to comment.