anchor.diff:   && dnf install --setopt=deltarpm=0 --setopt=tsflags=nodocs -y \
           gcc git-core libfaketime libffi-devel libjpeg-devel libsodium-devel libxml2-devel \
           libxslt-devel openssl-devel python2-devel python2-virtualenv redhat-rpm-config rpm-build
  -ENV SYNAPSE_VERSION="0.23.1"
  +ENV SYNAPSE_VERSION="0.24.0-rc1"
   ENV VENV=/buildroot/opt/synapse
   RUN mkdir -p $VENV
   RUN python2 -m virtualenv $VENV
  
positive.code: RUN SODIUM_INSTALL=system $VENV/bin/pip install dist/*.whl lxml 'Twisted>=17.1.0'
  WORKDIR /buildroot
  ENV RPM_BUILD_ROOT=/buildroot
  RUN find $RPM_BUILD_ROOT | /usr/lib/rpm/redhat/find-requires | grep -v "^$RPM_BUILD_ROOT" | tee $VENV/requires.txt
  RUN find $VENV/lib/python2.7/site-packages -type f -executable -exec objcopy --compress-debug-sections {} \;
  
  FROM fedora:latest
  
negative.code:  && mkdir /data && chown docker:docker /data
  VOLUME ["/data"]
  EXPOSE 8448
  ENTRYPOINT /start.sh
  USER docker
  