forked from heremaps/tin-terrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (21 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:18.10
RUN apt-get update
RUN apt-get --assume-yes install software-properties-common
RUN apt-get update
RUN apt-get --assume-yes install gdal-bin libgdal-dev
RUN dpkg -l | grep -i gdal
RUN apt-get --assume-yes install build-essential
RUN apt-get --assume-yes install cmake
RUN apt-get --assume-yes install libboost-program-options-dev
RUN apt-get --assume-yes install libboost-filesystem-dev
ADD . /usr/local/src/tin-terrain/
RUN mkdir /var/tmp/tin-terrain-build/
WORKDIR /var/tmp/tin-terrain-build/
RUN cmake -DCMAKE_BUILD_TYPE=Release /usr/local/src/tin-terrain/
# `nproc` prints the number of available CPU cores
# -jN enables parallel builds with N jobs
# setting the environment variable VERBOSE=1 enables full output of compiler commandlines
RUN VERBOSE=1 make -j`nproc`
RUN cp ./tin-terrain /usr/local/bin/
RUN rm -rf /var/tmp/tin-terrain-build/
WORKDIR /home