forked from camptocamp/tilecloud-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (20 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:16.04
MAINTAINER Stéphane Brunner <[email protected]>
COPY . /src/
RUN \
apt-get update && \
apt-get install --assume-yes --no-install-recommends wget ca-certificates python python-mapnik mapnik-utils gdal-bin libpq5 libgeos-c1v5 fonts-dejavu node-carto osm2pgsql curl unzip gcc python-dev libpq-dev libgeos-dev libmapnik-dev && \
cd /tmp && \
wget https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
mkdir /fonts && \
mkdir /project && \
cd /src && \
mv docker/run /usr/bin/ && \
pip install -r requirements.txt && \
pip install . && \
apt-get remove --assume-yes --purge gcc python-dev libpq-dev libgeos-dev libmapnik-dev wget && \
apt-get autoremove --assume-yes && \
apt-get clean && \
rm -rf /src /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/*
WORKDIR /project