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

# Install basics
USER jovyan
RUN pip3 install --upgrade pip
COPY .env .env

# Install python packages
COPY . .
RUN pip install --no-cache-dir -r requirements.txt