From f74d869adea00b853db46350018f1c4473f1e955 Mon Sep 17 00:00:00 2001 From: Steffen Vogel <post@steffenvogel.de> Date: Mon, 30 Mar 2020 16:01:54 +0200 Subject: [PATCH] add example for requirements.txt --- Dockerfile | 7 ++++--- requirements.txt | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index dc7806e..2aa8efb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,10 @@ ARG BASE_IMAGE=registry.git-ce.rwth-aachen.de/jupyter/singleuser/python:latest FROM ${BASE_IMAGE} +# Install packages via requirements.txt +ADD /tmp/requirement.txt . +RUN pip3 install -r /tmp/requirements.txt + # Update conda base environment to match specifications in environment.yml ADD environment.yml /tmp/environment.yml USER root @@ -13,6 +17,3 @@ RUN conda env update -f /tmp/environment.yml && \ conda clean -a -f -y ENV JUPYTER_ENABLE_LAB=yes - -# Copy workspace -COPY ./ /home/jovyan diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..fb6c7ed --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pandas -- GitLab