From 9482692c544f6aa369e0dee23fc7c08d48ea27c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Mon, 24 Apr 2023 22:25:59 +0200 Subject: [PATCH] update dockerfile --- Dockerfile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce12158..92a8e2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,24 @@ FROM python:3.10 RUN mkdir /app -WORKDIR /app RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - -RUN apt-get install nodejs && rm -rf /var/lib/apt/lists/* +RUN apt-get install autoconf automake libtool pkg-config nodejs git +RUN rm -rf /var/lib/apt/lists/* + +RUN mkdir /temp +RUN mkdir /temp/libpostal-build +WORKDIR /temp + +RUN git clone https://github.com/openvenues/libpostal +RUN cd libpostal +RUN ./bootstrap.sh +RUN ./configure --datadir=/temp/libpostal-build +RUN make -j4 +RUN make install +RUN ldconfig + +WORKDIR /app COPY . . -- GitLab