This is will construct a Docker image based on an older version of metaerg without a certain bug and fix the BLAST download and XML-DOM-XPath installation.
mkdir metaergold
cd metaergold
wget https://raw.githubusercontent.com/xiaoli-dong/metaerg/532bd189a446f8da85373335d48105ace49f3f7e/Dockerfile
wget -qO- https://gist.githubusercontent.com/Finesim97/6b7635d526bba47f8cbb9f609440d688/raw/d219a7cb88407c9db5b5bcf60d284c85fc382a00/Dockerfile.diff | patch Dockerfile
sudo docker build -t metaerg-old .
Now you have to replace xiaolidong/docker-metaerg
with metaerg-old
in your docker call and you can remove the `metaergold directory.