diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 231c0b5..60702fc 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 - diff --git a/Dockerfile b/Dockerfile index ae6dd7f..aa1900c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,14 @@ RUN git clone https://github.com/openvenues/libpostal /code/libpostal WORKDIR /code/libpostal # install libpostal +ARG TARGETARCH +ENV DESTDIR=/libpostal +ENV DATADIR=/usr/share/libpostal RUN ./bootstrap.sh && \ - ./configure --datadir=/usr/share/libpostal && \ - make && make check && DESTDIR=/libpostal make install && \ + # https://github.com/openvenues/libpostal/pull/632#issuecomment-1648303654 + ([ "$TARGETARCH" == "arm64" ] && ./configure --datadir="$DATADIR" --disable-sse2 || ./configure --datadir="$DATADIR") && \ + make -j4 && \ + make install && \ ldconfig # main image