ckdanny
3/1/2020 - 5:38 AM

Ubuntu 16.04 with Miniconda 3.6

Ubuntu 16.04 with Miniconda 3.6

FROM ubuntu:16.04
RUN apt-get update -y && apt-get install -y git build-essential && apt-get install python3-pip libffi-dev python3-setuptools -y
COPY "extra/pip_setup.sh" set-up/pip_setup.sh
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \
    libglib2.0-0 libxext6 libsm6 libxrender1 \
    git mercurial subversion
ENV PATH /opt/conda/bin:$PATH
RUN wget --quiet  [https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh](https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh)  -O set-up/miniconda.sh && \
    /bin/bash set-up/miniconda.sh -b -p /opt/conda && \
    rm set-up/miniconda.sh && \
    ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
    echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc
RUN conda config --add channels conda-forge && conda config --add channels intel && conda install -c conda conda-env -y
RUN conda update conda -y
RUN bash /set-up/pip_setup.sh && conda create -p /env python=3.6 -y && echo "conda activate /env" >> ~/.bashrc