-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 833 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 833 Bytes
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
# Start from ubuntu
FROM ubuntu:16.04
# Update repos and install dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install build-essential wget curl libsqlite3-dev zlib1g-dev libpng-dev
# Create a directory and copy in all files
RUN mkdir -p /tmp/tile-count-src
WORKDIR /tmp/tile-count-src
COPY . /tmp/tile-count-src
# Build tile-count
RUN make \
&& make install
# Install tippecanoe since the tests depend on it
ENV TIPPECANOE_VERSION="1.26.3"
RUN wget https://github.com/mapbox/tippecanoe/archive/${TIPPECANOE_VERSION}.tar.gz && \
tar -xvf ${TIPPECANOE_VERSION}.tar.gz && \
cd tippecanoe-${TIPPECANOE_VERSION} && \
make && \
make install
RUN curl https://nodejs.org/dist/v4.8.6/node-v4.8.6-linux-x64.tar.gz | tar zxC /usr/local --strip-components=1
# Run the tests
CMD make test