  RUN rm get-pip.py
  
  # install requirements
  RUN apt-get install ffmpeg git -y
  COPY _requirements_base.txt /opt/
  COPY requirements_nvidia.txt /opt/
  RUN python3.8 -m pip --no-cache-dir install -r /opt/requirements_nvidia.txt && rm /opt/_requirements_base.txt && rm /opt/requirements_nvidia.txt
  
  RUN python3.8 -m pip install jupyter matplotlib
  RUN python3.8 -m pip install jupyter_http_over_ws
  RUN jupyter serverextension enable --py jupyter_http_over_ws
 
</s> remove COPY _requirements_base.txt /opt/
 </s> add COPY ./requirements/_requirements_base.txt /opt/ </s> remove         with Popen(f"\"{sys.executable}\" -m pip freeze", shell=True, stdout=PIPE) as chk:
 </s> add         with Popen(f"\"{sys.executable}\" -m pip freeze --local", shell=True, stdout=PIPE) as chk: </s> remove             requirements_file = os.path.join(pypath, req_file)
 </s> add             requirements_file = os.path.join(pypath, "requirements", req_file) </s> remove                     # parse_requirements can't handle git dependencies, so extract and then
                    # manually add to final list
                    if package and package.startswith("git+"):
                        git_requirements.append((package, []))
                        continue
 </s> add  </s> remove         git_requirements = []
 </s> add 
COPY ./requirements/_requirements_base.txt /opt/
COPY ./requirements/requirements_nvidia.txt /opt/
  RUN rm get-pip.py
  
  # install requirements
  RUN apt-get install ffmpeg git -y
COPY ./requirements/_requirements_base.txt /opt/
COPY ./requirements/requirements_nvidia.txt /opt/
COPY ./requirements/_requirements_base.txt /opt/
COPY ./requirements/requirements_nvidia.txt /opt/
  RUN python3.8 -m pip --no-cache-dir install -r /opt/requirements_nvidia.txt && rm /opt/_requirements_base.txt && rm /opt/requirements_nvidia.txt
  
  RUN python3.8 -m pip install jupyter matplotlib
  RUN python3.8 -m pip install jupyter_http_over_ws
  RUN jupyter serverextension enable --py jupyter_http_over_ws
keep keep keep keep replace replace keep keep keep keep keep
 setup.py - python 3.9 support
    - move requirements files to dedicated folder
    - update all references to requirements files locations
    - setup.py: remove git requirements references
    - setup.py: allow running in python 3.9
    - windows/linux installers: default to python 3.9 environment
    - faceswap.py: cleaner python version check 
Dockerfile.gpu