Instead of use libmcrypt or php5-mcrypt (below line apt-get install -y \) just use following library in dockerfile:
libmcrypt
php5-mcrypt
apt-get install -y \
libmcrypt-dev \