You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
545 B
Docker

2 years ago
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