-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (27 loc) · 1.06 KB
/
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
35
36
37
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y openjdk-8-jdk curl autoconf automake libtool pkg-config git unzip
ARG COMMIT
ENV COMMIT ${COMMIT:-master}
ENV DEBIAN_FRONTEND noninteractive
# Build libpostal
RUN git clone https://github.com/openvenues/libpostal -b $COMMIT
COPY build_libpostal.sh /libpostal/build_libpostal.sh
RUN ["chmod", "+x", "/libpostal/build_libpostal.sh"]
WORKDIR /libpostal
RUN ./build_libpostal.sh
# Build jpostal
WORKDIR /
RUN git clone https://github.com/openvenues/jpostal -b $COMMIT
COPY build_jpostal.sh /jpostal/build_jpostal.sh
RUN ["chmod", "+x", "/jpostal/build_jpostal.sh"]
WORKDIR /jpostal
RUN ./build_jpostal.sh
RUN ["mv", "/jpostal/src/main/jniLibs", "/usr/src/jniLibs"]
# Copy jars and config files
COPY target/location-tools-1.0-SNAPSHOT.jar /usr/src/location-tools-1.0-SNAPSHOT.jar
COPY vertx-docker-conf.json /usr/src/conf/vertx-docker-conf.json
# Copy on start executables
COPY onstart-docker.sh /usr/src/onstart-docker.sh
RUN ["chmod", "+x", "/usr/src/onstart-docker.sh"]
CMD ["/usr/src/onstart-docker.sh"]
EXPOSE 8080