Skip to content
Snippets Groups Projects
Select Git revision
  • e243cd914dbb87602f82b87c9f5b97ca11d36b95
  • master default protected
  • blup
3 results

Dockerfile

Blame
  • Steffen Vogel's avatar
    Steffen Vogel authored
    e243cd91
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 731 B
    # Specify parent image. Please select a fixed tag here.
    ARG BASE_IMAGE=registry.git.rwth-aachen.de/jupyter/profiles/rwth-courses:2020-ss.1
    FROM ${BASE_IMAGE}
    
    # Install packages via requirements.txt
    ADD requirements.txt .
    RUN pip3 install -r requirements.txt
    
    # .. Or update conda base environment to match specifications in environment.yml
    ADD environment.yml /tmp/environment.yml
    RUN sed -i "s|name\: jupyter-example-profile|name\: base|g" /tmp/environment.yml # we need to replace the name of the environment with base such that we can update the base environment here
    
    # All packages specified in environment.yml are installed in the base environment
    RUN conda env update -f /tmp/environment.yml && \
        conda clean -a -f -y