Skip to content

Commit

Permalink
local build
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Jul 6, 2024
1 parent 604a83a commit ec2fff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM golang:1.22

# args
ARG BUILDARCH
ARG TARGETARCH
ARG GIN_MODE=release

# Set up environment variables
Expand All @@ -22,11 +22,11 @@ RUN apt-get update -qq && apt-get install -yq --no-install-recommends \

# install libpostal

RUN echo $BUILDARCH
RUN echo $TARGETARCH
RUN git clone https://github.com/openvenues/libpostal /code/libpostal
WORKDIR /code/libpostal
RUN ./bootstrap.sh && \
./configure --datadir=/usr/share/libpostal $([ "$BUILDARCH" = "arm64" ] && echo "--disable-sse2" || echo "") && \
./configure --datadir=/usr/share/libpostal $([ "$TARGETARCH" = "arm64" ] && echo "--disable-sse2" || echo "") && \
make -j4 && make check && make install && \
ldconfig

Expand Down

0 comments on commit ec2fff0

Please sign in to comment.