forked from openaustralia/morph-docker-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 889 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker-registry.opencorporates.com/opencorporates/morph-ruby
MAINTAINER OpenCorporates <tech@opencorporates.com>
USER root
# Volume for sharing wrapper script
VOLUME /utils
RUN apt-get update
RUN apt-get -y install apt-utils python wget build-essential python-dev swig libevent-dev python-protobuf libprotobuf-dev libcurl4-gnutls-dev libxml2-dev libxslt-dev libblas-dev liblapack-dev gfortran libfreetype6-dev libpng-dev
# Install pip
RUN wget https://bootstrap.pypa.io/get-pip.py; python get-pip.py
RUN wget http://arshaw.com/scrapemark/downloads/scrapemark-0.9-py2.7.egg; easy_install scrapemark-0.9-py2.7.egg
# This needs to be installed first
RUN pip install numpy==1.6.1
ADD requirements.txt /etc/requirements.txt
RUN pip install -r /etc/requirements.txt
# poppler-utils has a more recent pdftohtml than the pdftohtml package
RUN apt-get -y install poppler-utils
USER openc