-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (27 loc) · 906 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Inherit from Heroku's stack
FROM heroku/cedar:14
MAINTAINER Phaninder "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV LIBPOSTAL_VERSION v1.0.0
ENV LIBPOSTAL_DIR /opt/libpostal
ENV LIBPOSTAL_DATA_DIR /opt/libpostal_data
########################################
# libpostal
########################################
RUN echo "deb http://cz.archive.ubuntu.com/ubuntu trusty main" > /etc/apt/sources.list
RUN apt-get update && apt-get -qq update && apt-get install -y --force-yes \
libsnappy-dev \
autoconf \
automake \
libtool \
pkg-config \
git
RUN wget https://github.com/openvenues/libpostal/archive/$LIBPOSTAL_VERSION.tar.gz
RUN mkdir -p $LIBPOSTAL_DIR
RUN tar -xvzf $LIBPOSTAL_VERSION.tar.gz -C $LIBPOSTAL_DIR --strip 1
WORKDIR $LIBPOSTAL_DIR
COPY ./build_libpostal.sh .
RUN ./build_libpostal.sh
##############
WORKDIR $LIBPOSTAL_DIR
CMD ["./src/libpostal"]