I have a Dockerfile recipe:
FROM ubuntu:18.04
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
SHELL ["/bin/bash", "-c"]
RUN apt-get update
RUN 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 exec bash \
&& . /root/.bashrc \
&& conda init bash \
&& conda activate \
&& conda install -y pandas=1.3
When I use the command:
docker build -t myimage .
The image builds fine, however pandas is not installed. How can I install packages in conda using a dockerfile ??