anchor.diff:  FROM ubuntu:xenial as app
   
   RUN apt update && \
  -  apt install -y git-core language-pack-en python3.5 python3-pip python3-dev libmysqlclient-dev libffi-dev libssl-dev build-essential gettext openjdk-8-jdk && \
  -  pip3 install --upgrade pip setuptools && \
  +  apt-get install -y software-properties-common && \
  +  apt-add-repository -y ppa:deadsnakes/ppa && apt-get update && \
  +  apt install -y git-core language-pack-en python3.8-dev python3.8-venv libmysqlclient-dev libffi-dev libssl-dev build-essential gettext openjdk-8-jdk && \
     rm -rf /var/lib/apt/lists/*
   
  +ENV VIRTUAL_ENV=/venv
  +RUN python3.8 -m venv $VIRTUAL_ENV
  +ENV PATH="$VIRTUAL_ENV/bin:$PATH"
   
  -RUN ln -s /usr/bin/pip3 /usr/bin/pip
  -RUN ln -s /usr/bin/python3 /usr/bin/python
  -
  +RUN pip install pip==20.2.3 setuptools==50.3.0
   
   RUN locale-gen en_US.UTF-8
   ENV LANG en_US.UTF-8
  
positive.code: COPY . /edx/app/analytics_api
  
  FROM app as newrelic
  RUN pip3 install newrelic
  CMD newrelic-admin run-program gunicorn --bind=0.0.0.0:8100 --workers 2 --max-requests=1000 -c /edx/app/analytics_api/analytics_data_api/docker_gunicorn_configuration.py analyticsdataserver.wsgi:application
  
negative.code: 
  WORKDIR /edx/app/analytics_api
  COPY requirements /edx/app/analytics_api/requirements
  RUN pip install -r requirements/production.txt
  
  EXPOSE 8100
  CMD gunicorn --bind=0.0.0.0:8100 --workers 2 --max-requests=1000 -c /edx/app/analytics_api/analytics_data_api/docker_gunicorn_configuration.py analyticsdataserver.wsgi:application
  