-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile.base
77 lines (61 loc) · 3.25 KB
/
Dockerfile.base
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM fcollman/render:latest
MAINTAINER Forrest Collman ([email protected])
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 \
git mercurial subversion
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda2-4.3.11-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
RUN apt-get install -y curl grep sed dpkg && \
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
dpkg -i tini.deb && \
rm tini.deb && \
apt-get clean
# RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
# libglib2.0-0 libxext6 libsm6 libxrender1 \
# git mercurial subversion
# RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
# wget --quiet https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \
# /bin/bash ~/anaconda.sh -b -p /opt/conda && \
# rm ~/anaconda.sh
# RUN apt-get install -y curl grep sed dpkg && \
# TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \
# curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \
# dpkg -i tini.deb && \
# rm tini.deb && \
# apt-get clean
ENV PATH /opt/conda/bin:$PATH
#install java
# auto validate license
#RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
#RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
#RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
#RUN apt-get update
#RUN apt-get install oracle-java8-installer -y
#ENV JAVA_HOME /www/var/render/deploy/jdkd
#install pathos,multiprocess with gcc
RUN apt-get update
RUN apt-get install gcc build-essential libgeos-dev imagemagick -y
RUN apt-get install python-setuptools python-dev -y
#RUN apt-get install libblas-dev liblapack-dev -y
RUN apt-get clean
#install components for common render-python apps
#jupyter notebook, shapely with geos
# RUN /opt/conda/bin/conda install jupyter -y
#RUN easy_install pip
#RUN pip install -U pip setuptools
RUN pip install pillow xmltodict pathos==0.2.0 multiprocess==0.70.5 dill==0.2.6 opencv-python shapely==1.6b2
RUN conda install scipy
RUN pip install setuptools --upgrade --disable-pip-version-check
RUN mkdir -p /usr/local/render-python
COPY . /usr/local/render-python
WORKDIR /usr/local/render-python
RUN pip install -r requirements.txt
RUN pip install -r test_requirements.txt
RUN pip install matplotlib pandas jupyter
#install render python using pip from github
#RUN pip install -e git+https://github.com/fcollman/render-python.git@master#egg=render-python