Created
April 30, 2019 19:16
-
-
Save kaczmarj/a821cad18a34a676fecda9172e56321a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get -qq update \ | |
&& apt-get install -yq --no-install-recommends \ | |
curl \ | |
git \ | |
graphviz \ | |
libgraphviz-dev \ | |
pkg-config \ | |
software-properties-common \ | |
tesseract-ocr \ | |
wget \ | |
&& add-apt-repository ppa:joyard-nicolas/ffmpeg -y \ | |
&& apt-get -qq update \ | |
&& apt-get install -yq --no-install-recommends ffmpeg \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
WORKDIR /root | |
ENV MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" \ | |
CONDA_DEPS="pip jupyter pytest pygraphviz numpy pandas pillow==2.9.0 requests scipy nltk six tqdm seaborn matplotlib pathos tensorflow contextlib2" \ | |
MINICONDA="$HOME/miniconda" | |
ENV PATH="$MINICONDA/bin:$PATH" | |
RUN wget $MINICONDA_URL -q -O miniconda.sh \ | |
&& bash miniconda.sh -b -f -p $MINICONDA \ | |
&& hash -r \ | |
&& conda info -a \ | |
&& conda config --set always_yes yes --set changeps1 no \ | |
&& conda config --add channels conda-forge \ | |
&& conda update -y -q conda \ | |
&& conda create -y -q -n py35 python=3.5 $CONDA_DEPS | |
RUN /bin/bash -c "source /miniconda/envs/py35/bin/activate py35 \ | |
&& pip install --upgrade --ignore-installed setuptools \ | |
&& pip install python-magic coveralls pytest-cov pysrt xlrd clarifai pytesseract moviepy==0.2.2.13 SpeechRecognition IndicoIo sklearn python-twitter gensim oauth2client google-api-python-client google-compute-engine librosa ipython \ | |
&& python -c 'import imageio; imageio.plugins.ffmpeg.download()'" | |
WORKDIR /root/pliers | |
COPY . . | |
RUN /bin/bash -c 'source /miniconda/envs/py35/bin/activate py35 \ | |
&& python setup.py install' \ | |
&& echo "if (tty -s); then \n\ | |
source /miniconda/envs/py35/bin/activate py35\n\ | |
fi" >> /root/.bashrc | |
RUN /bin/bash -c 'source /miniconda/envs/py35/bin/activate py35 \ | |
&& python -m pliers.support.download' | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment