FROM conda/miniconda3 ARG USER ARG GROUP ARG UID ARG GID RUN groupadd --gid ${GID} ${GROUP} RUN useradd --shell /bin/bash --uid ${UID} --gid ${GID} --create-home ${USER} RUN mkdir /wd RUN chown ${USER}:${GROUP} /wd RUN apt-get update && apt-get install -y build-essential USER ${USER} RUN conda init RUN conda create -n jupyter-env python==3.9 jupyterlab -y RUN echo "conda activate jupyter-env" >> /home/${USER}/.bashrc SHELL ["/bin/bash", "--login", "-i", "-c"] WORKDIR /wd ENV SHELL=/bin/bash CMD jupyter lab --ip 0.0.0.0 --no-browser