forked from openaddresses/machine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-prereqs
More file actions
27 lines (22 loc) · 1.09 KB
/
Dockerfile-prereqs
File metadata and controls
27 lines (22 loc) · 1.09 KB
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
FROM ubuntu:16.04
ENV LC_ALL=C.UTF-8
# Install packages additional Ubuntu PPAs.
RUN apt-get update -y && \
apt-get install -y software-properties-common python-software-properties && \
add-apt-repository -y ppa:openaddresses/gdal2
# Install needed binary packages for pip installation, openaddr requirements, and Tippecanoe.
RUN apt-get update -y && \
apt-get install -y python3-pip && \
apt-get install -y python3-cairo libgeos-c1v5=3.5.1-3~xenial0 \
libgdal20=2.1.3+dfsg-1~xenial2 python3-gdal=2.1.3+dfsg-1~xenial2 \
python3-pip python3-dev libpq-dev memcached libffi-dev \
gdal-bin=2.1.3+dfsg-1~xenial2 libgdal-dev=2.1.3+dfsg-1~xenial2 && \
apt-get install -y git build-essential libsqlite3-dev protobuf-compiler libprotobuf-dev
# Download and install Tippecanoe.
RUN git clone -b 1.34.3 https://github.com/mapbox/tippecanoe.git /tmp/tippecanoe && \
cd /tmp/tippecanoe && \
make && \
PREFIX=/usr/local make install && \
rm -rf /tmp/tippecanoe
# Pip modules for EC2 user data scripts and docs.
RUN pip3 install 'honcho == 1.0.1' 'virtualenv == 15.1.0'