|
| 1 | + |
| 2 | +FROM fcollman/render:latest |
| 3 | +MAINTAINER Forrest Collman (forrest.collman@gmail.com) |
| 4 | + |
| 5 | +ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 |
| 6 | + |
| 7 | +RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ |
| 8 | + libglib2.0-0 libxext6 libsm6 libxrender1 \ |
| 9 | + git mercurial subversion |
| 10 | + |
| 11 | +RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ |
| 12 | + wget --quiet https://repo.continuum.io/miniconda/Miniconda2-4.3.11-Linux-x86_64.sh -O ~/miniconda.sh && \ |
| 13 | + /bin/bash ~/miniconda.sh -b -p /opt/conda && \ |
| 14 | + rm ~/miniconda.sh |
| 15 | + |
| 16 | +RUN apt-get install -y curl grep sed dpkg && \ |
| 17 | + TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \ |
| 18 | + curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \ |
| 19 | + dpkg -i tini.deb && \ |
| 20 | + rm tini.deb && \ |
| 21 | + apt-get clean |
| 22 | + |
| 23 | +# RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ |
| 24 | +# libglib2.0-0 libxext6 libsm6 libxrender1 \ |
| 25 | +# git mercurial subversion |
| 26 | + |
| 27 | +# RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ |
| 28 | +# wget --quiet https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \ |
| 29 | +# /bin/bash ~/anaconda.sh -b -p /opt/conda && \ |
| 30 | +# rm ~/anaconda.sh |
| 31 | + |
| 32 | +# RUN apt-get install -y curl grep sed dpkg && \ |
| 33 | +# TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \ |
| 34 | +# curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \ |
| 35 | +# dpkg -i tini.deb && \ |
| 36 | +# rm tini.deb && \ |
| 37 | +# apt-get clean |
| 38 | + |
| 39 | +ENV PATH /opt/conda/bin:$PATH |
| 40 | + |
| 41 | +#install java |
| 42 | +# auto validate license |
| 43 | +#RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections |
| 44 | +#RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list |
| 45 | +#RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list |
| 46 | +#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 |
| 47 | +#RUN apt-get update |
| 48 | +#RUN apt-get install oracle-java8-installer -y |
| 49 | +#ENV JAVA_HOME /www/var/render/deploy/jdkd |
| 50 | + |
| 51 | +#install pathos,multiprocess with gcc |
| 52 | +RUN apt-get update |
| 53 | +RUN apt-get install gcc build-essential libgeos-dev imagemagick -y |
| 54 | +RUN apt-get install python-setuptools python-dev -y |
| 55 | +#RUN apt-get install libblas-dev liblapack-dev -y |
| 56 | +RUN apt-get clean |
| 57 | + |
| 58 | + |
| 59 | +#install components for common render-python apps |
| 60 | +#jupyter notebook, shapely with geos |
| 61 | +# RUN /opt/conda/bin/conda install jupyter -y |
| 62 | + |
| 63 | + |
| 64 | +#RUN easy_install pip |
| 65 | +#RUN pip install -U pip setuptools |
| 66 | +RUN pip install shapely==1.6b2 |
| 67 | +RUN pip install opencv-python |
| 68 | +RUN pip install dill==0.2.6 |
| 69 | +RUN pip install multiprocess==0.70.5 |
| 70 | +RUN pip install pathos==0.2.0 |
| 71 | +RUN pip install pillow |
| 72 | +RUN conda install scipy |
| 73 | +RUN pip install setuptools --upgrade --disable-pip-version-check |
| 74 | +RUN mkdir -p /usr/local/render-python |
| 75 | +COPY . /usr/local/render-python |
| 76 | +WORKDIR /usr/local/render-python |
| 77 | +RUN pip install -r requirements.txt |
| 78 | +RUN pip install -r ./test/requirements.txt |
| 79 | +#install render python using pip from github |
| 80 | +#RUN pip install -e git+https://github.com/fcollman/render-python.git@master#egg=render-python |
| 81 | + |
0 commit comments