Skip to content

Commit

Permalink
feat(dockerfile): use TARGETARCH instead of TARGETPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 30, 2023
1 parent d024fc3 commit 3cf1f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM pelias/libpostal_baseimage as builder
RUN apt-get update && apt-get install -y make pkg-config build-essential

# install go
ARG TARGETPLATFORM
RUN curl "https://dl.google.com/go/go1.11.linux-${TARGETPLATFORM##*/}.tar.gz" | tar -C /usr/local -xz
ARG TARGETARCH
RUN curl "https://dl.google.com/go/go1.11.linux-${TARGETARCH}.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 3cf1f45

Please sign in to comment.