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 libpq-dev # Set working directory WORKDIR /usr/src/app # Install basics USER jovyan RUN pip3 install --upgrade pip # Install python packages COPY . . RUN pip install --no-cache-dir -r requirements.txt