forked from mojodna/tessera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 loc) · 1.18 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
38
39
40
41
42
43
# Mapnik requires GLIBCXX_3.4.21, which is not available on standard Jessie deb build for Docker node image
# so build from scratch
FROM debian:stretch
RUN apt-get -qq update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \
apt-transport-https \
curl \
unzip \
build-essential \
git-core \
&& echo "deb https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodejs.list \
&& echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodejs.list \
&& apt-get -qq update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --allow-unauthenticated install \
nodejs \
&& rm /etc/apt/sources.list.d/nodejs.list \
&& apt-get clean
WORKDIR /usr/src/app
COPY package.json bower.json .bowerrc ./
RUN npm install --unsafe-perm
# Install tilelive modules
RUN npm install mbtiles tilelive-vector tilelive-xray
# Install customised Emu variants
RUN npm install git+https://github.com/emuanalytics/tilelive-modules.git#b51e280 git+https://github.com/emuanalytics/tilelive-postgis.git#ae2bbda2
RUN mkdir /data
RUN mkdir /config
COPY . .
VOLUME /config
VOLUME /data
EXPOSE 8080
ENTRYPOINT ["./bin/tessera.js"]
CMD ["-c", "/config"]