Inside my Dockerfile:
ENV ENV_NAME=dev_env
RUN conda create -n ${ENV_NAME} python=3.8 pip
SHELL ["conda", "run", "-n", "${ENV_NAME}", "/bin/bash", "-c"]
This would cause error which says ${ENV_NAME} is not a virtual environment name. I would like to know how I can use a variable in a SHELL instruction. I tried to follow How can I use a variable inside a Dockerfile CMD? , but it doesn't work in my case.