Created
October 10, 2017 21:42
-
-
Save davidrs/6530c4b4b1753bfc934e0334119f67e6 to your computer and use it in GitHub Desktop.
Adding Conda to any Docker file
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
# I found some snippets around the web that didn't work, this is what did workf or me. | |
# This assumes a linux based Docker image, in my case an Ubunut one. | |
# I was trying to add conda to leyden5iwx/caffe-cpu-master | |
# Base Docker image | |
FROM tleyden5iwx/caffe-cpu-master | |
# misc apt-get installs.... | |
# Install miniconda to /miniconda | |
RUN curl -LO http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh | |
RUN bash Miniconda-latest-Linux-x86_64.sh -p /miniconda -b | |
RUN rm Miniconda-latest-Linux-x86_64.sh | |
ENV PATH=/miniconda/bin:${PATH} | |
RUN conda update -y conda | |
# Install whatever dependencies you want from conda | |
RUN conda install -y opencv && \ | |
conda install -y -c menpo dlib=18.18 && \ | |
conda install -y pil && \ | |
conda install -y boost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment