This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (43 loc) · 1.62 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
44
45
46
47
48
49
50
51
FROM debian:stretch
RUN apt-get update && apt-get install -y nodejs \
nodejs-legacy \
git \
wget \
python \
build-essential \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-regex-dev \
libboost-system-dev libboost-thread-dev \
libxml2 libxml2-dev \
libfreetype6 libfreetype6-dev \
libjpeg-dev \
libpng-dev \
libtiff5-dev \
libcairo2 libcairo2-dev \
ttf-unifont ttf-dejavu ttf-dejavu-core ttf-dejavu-extra \
build-essential \
libgdal-dev \
libharfbuzz-bin \
libharfbuzz-dev \
libmapnik-dev \
&& rm -rf /var/lib/apt/lists/*
# Backported mapnik 3.0.20 from Wikimedia Stretch
# RUN printf "deb https://apt.wikimedia.org/wikimedia stretch-wikimedia main" >> /etc/apt/sources.list
# RUN wget -qO - "https://wikitech.wikimedia.org/w/index.php?title=APT_repository/Stretch-Key&action=raw" | apt-key add -
# RUN apt-get update && apt-get install -y -t stretch-wikimedia libmapnik3.0 libmapnik-dev mapnik-utils mapnik-doc
# Install mapnik from source
RUN git clone https://github.com/mapnik/mapnik.git /tmp/mapnik
RUN cd /tmp/mapnik && git submodule update --init
RUN cd /tmp/mapnik && ./configure
RUN cd /tmp/mapnik && make
# RUN cd /tmp/mapnik && make test
RUN cd /tmp/mapnik && make install
ENV NVM_DIR $HOME/.nvm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash \
&& . $NVM_DIR/nvm.sh && nvm install 10.14.2
COPY config.docker.yaml /etc/opt/config.docker.yaml
COPY sources.docker.yaml /etc/opt/sources.docker.yaml
COPY start.sh /usr/local/bin/start.sh
WORKDIR /home/kartotherian
# CMD /bin/bash /usr/local/bin/start.sh