Commit 9ec4c797 authored by Matthieu Boileau's avatar Matthieu Boileau

Use environment.yml rather than requirements.txt

parent d04bf582
FROM jupyter/minimal-notebook
# From Jupyter Project <jupyter@googlegroups.com>
LABEL maintainer="Matthieu Boileau <matthieu.boileau@math.unistra.fr>"
USER root
......@@ -22,14 +20,13 @@ RUN apt-get update && apt-get -yq dist-upgrade \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# PATH to pip executable
ENV PATH=~/.local/bin:$PATH
ADD docker/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python3 -m bash_kernel.install
ADD docker/environment.yml /tmp/
RUN conda update -n base -c defaults conda && \
conda env create -f /tmp/environment.yml && \
conda clean --all -f -y
RUN echo "source activate $(head -1 /tmp/environment.yml | cut -d' ' -f2)" > ~/.bashrc
ENV PATH /opt/conda/envs/$(head -1 /tmp/environment.yml | cut -d' ' -f2)/bin:$PATH
# Switch back to NB_USER to avoid accidental container runs as root
USER $NB_USER
WORKDIR $HOME/work
name: outils-dev-log
channels:
- conda-forge
dependencies:
- pip
- bash_kernel
- IPython
- ipywidgets
- jupyter_contrib_nbextensions
- numpy
- matplotlib
- pyproj
- pip:
- bookbook
- latex
\ 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