anchor.diff:      && apt-get clean \
       && rm -rf /var/lib/apt/lists/*
   
  +#  install the packages necessary to build Python source:
  +RUN apt update && apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev \
  +    libnss3-dev libssl-dev libreadline-dev libffi-dev libbz2-dev \
  +    libncursesw5-dev libsqlite3-dev tk-dev libc6-dev ca-certificates
   
  -# install python
  -RUN apt-get update && apt-get install -y --no-install-recommends \
  -    python-dev \
  -    ca-certificates \
  -    && wget https://bootstrap.pypa.io/get-pip.py \
  -    && python get-pip.py \
  -    && pip install --upgrade pip setuptools \
  -    && apt-get clean \
  -    && rm -rf /var/lib/apt/lists/*
  +# downland Python soruce code
  +RUN curl -O https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tar.xz \
  +    && tar -xf Python-3.7.8.tar.xz \
  +    && rm -f Python-3.7.8.tar.xz
  +
  +# build and install Python
  +RUN cd Python-3.7.8 \
  +    && ./configure --enable-optimizations \
  +    && make -j `nproc` \
  +    && make install \
  +    && cd .. \
  +    && rm -rf Python-3.7.8 \
  +    && ln -s /usr/local/bin/pip3.7 /usr/local/bin/pip \
  +    && ln -s /usr/local/bin/python3.7 /usr/local/bin/python
   
   # install dependencies of the HaploPainter.pl script used to generate static pedigree images
   RUN apt-get update && apt-get install -y --no-install-recommends \
  
positive.code:     && curl https://sdk.cloud.google.com | bash \
      && apt-get update && apt-get install -y \
          gcc \
          python-dev \
          python-setuptools \
          libffi-dev \
          libssl-dev \
          libpq-dev \
      && pip install gsutil
  
  
negative.code: FROM debian:stretch
  
  MAINTAINER MacArthur Lab
  
  