-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
46 lines (35 loc) · 1.41 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
# beachfront-py
# https://github.com/venicegeo/beachfront-py
# Copyright 2016, RadiantBlue Technologies, Inc.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
FROM developmentseed/geolambda:cloud
RUN \
yum makecache fast; \
yum install -y agg-devel swig;
#RUN apt-get update; \
# apt-get install -y python-setuptools python-numpy python-dev libgdal-dev python-gdal swig git g++; \
# apt-get install -y libagg-dev libpotrace-dev; \
# easy_install pip; pip install wheel;
ENV \
POTRACE_VERSION=1.15
# install potrace
RUN \
wget http://potrace.sourceforge.net/download/$POTRACE_VERSION/potrace-$POTRACE_VERSION.tar.gz; \
tar -xzvf potrace-$POTRACE_VERSION.tar.gz; \
cd potrace-$POTRACE_VERSION; \
./configure --with-libpotrace; \
make && make install && cd .. && \
rm -rf potrace-$POTRACE_VERSION*
COPY requirements*txt $BUILD/
RUN \
pip install -r requirements.txt; \
pip install -r requirements-dev.txt
COPY ./ $BUILD/
RUN pip install .