Commit 4764c1e8 authored by Thomas Lips's avatar Thomas Lips
Browse files

create conda env once more

parent 7d88c5c2
Pipeline #44761 passed with stage
in 10 minutes and 7 seconds
# select base image: scipy notebook (gpu-enabled)
FROM gitlab.ilabt.imec.be:4567/ilabt/gpu-docker-stacks/scipy-notebook:cuda10.1-ubuntu18.04
# name your environment and choose python 3.x version
ARG conda_env=python38
ARG py_ver=3.8
# you can add additional libraries you want mamba to install by listing them below the first line and ending with "&& \"
RUN conda create --quiet --yes -p "${CONDA_DIR}/envs/${conda_env}" python=${py_ver} ipython ipykernel && \
conda clean --all -f -y
# alternatively, you can comment out the lines above and uncomment those below
# if you'd prefer to use a YAML file present in the docker build context
# COPY --chown=${NB_UID}:${NB_GID} environment.yml "/home/${NB_USER}/tmp/"
# RUN cd "/home/${NB_USER}/tmp/" && \
# mamba env create -p "${CONDA_DIR}/envs/${conda_env}" -f environment.yml && \
# mamba clean --all -f -y
# create Python 3.x environment and link it to jupyter
RUN "${CONDA_DIR}/envs/${conda_env}/bin/python" -m ipykernel install --user --name="${conda_env}"
# additional pip installs
COPY requirements.txt "/home/${NB_USER}/tmp/"
RUN pip install --no-cache-dir -r "/home/${NB_USER}/tmp/requirements.txt" && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN pip install --no-cache-dir -r "/home/${NB_USER}/tmp/requirements.txt"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment