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 libpq-dev gcc # Set working directory WORKDIR /usr/src/app # Install basics USER jovyan RUN pip3 install --upgrade pip COPY .env .env # 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/