Building mini docker images with conda inside
Mini dockerfile with conda
Dockerfile
FROM ubuntu:18.04
ENTRYPOINT [ "/bin/bash", "-c" ]
RUN apt-get -qq update && apt-get -qq upgrade --no-install-recommends \
&& apt-get -qq -y --no-install-recommends install curl bzip2 \
&& curl -sSLk https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -bfp /usr/local \
&& rm -rf /tmp/miniconda.sh \
&& conda install -y python=3 \
&& conda update conda \
&& apt-get -qq -y remove curl bzip2 \
&& apt-get -qq -y autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \
&& conda clean --all --yes
ENV PATH /opt/conda/bin:$PATH
Building
docker build --tag minimal .
docker image list