Skip to content

Commit

Permalink
feat(docker): multiarch build
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Dec 1, 2023
1 parent 3cf1f45 commit 4081c61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ jobs:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_BUILD_PLATFORMS: classic
run: |
curl "https://raw.githubusercontent.com/pelias/ci-tools/master/build-docker-images.sh" | bash -
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ RUN apt-get update && apt-get install -y make pkg-config build-essential

# install go
ARG TARGETARCH
RUN curl "https://dl.google.com/go/go1.11.linux-${TARGETARCH}.tar.gz" | tar -C /usr/local -xz
RUN curl "https://dl.google.com/go/go1.15.2.linux-${TARGETARCH}.tar.gz" | tar -C /usr/local -xzf -
ENV PATH="$PATH:/usr/local/go/bin"
ENV GOPATH=/go
ENV GO111MODULE=on

# bring in and build project go code
RUN git clone https://github.com/whosonfirst/go-whosonfirst-libpostal.git /code/
WORKDIR /code/go-whosonfirst-libpostal
RUN git clone https://github.com/whosonfirst/go-whosonfirst-libpostal.git .
RUN make bin

# start of main image
Expand Down

0 comments on commit 4081c61

Please sign in to comment.