From 372e26f481fe35b58a14232f111c3373092bafef Mon Sep 17 00:00:00 2001 From: Julian Rasch <jr662933@fh-muenster.de> Date: Sat, 2 Mar 2024 14:30:59 +0000 Subject: [PATCH] Update Dockerfile to correctly install requirements in dev --- Dockerfile | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8786a75..edfe29e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,22 @@ -FROM jupyter/datascience-notebook:hub-3.1.1 +FROM jupyter/scipy-notebook:hub-1.5.0 # Install from APT repository USER root RUN apt-get update -y -RUN apt-get install -y git +RUN apt-get install -y git libpq-dev gcc + +# Set working directory +WORKDIR /usr/src/app # Install basics USER jovyan RUN pip3 install --upgrade pip +COPY .env .env -# RUN pip3 install --upgrade pip -RUN pip install jupyter-server-proxy==4.0.0 -RUN pip install jupyterlab-git==0.42.0 -RUN pip install jupyterlab-gitlab==3.0.0 +# Install python packages +COPY requirements.txt requirements.txt +RUN pip install --no-cache-dir -r requirements.txt +ENV IPYTHONDIR /usr/src/app/ipython/ +WORKDIR /usr/src/app/ipython/profile_default/startup/ +COPY python_startup/ ./ +WORKDIR /home/ -- GitLab