How to install packages with miniconda in Dockerfile? How to install packages with miniconda in Dockerfile? python python

How to install packages with miniconda in Dockerfile?


This will work using ARG and ENV:

FROM ubuntu:18.04ENV PATH="/root/miniconda3/bin:${PATH}"ARG PATH="/root/miniconda3/bin:${PATH}"RUN apt-get updateRUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*RUN wget \    https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \    && mkdir /root/.conda \    && bash Miniconda3-latest-Linux-x86_64.sh -b \    && rm -f Miniconda3-latest-Linux-x86_64.sh RUN conda --version