FROM ubuntu:20.04 ENV php_version=7.4 COPY ["/rootfs/etc/timezone", "/rootfs/etc/localtime", "/etc/"] RUN apt-get update -y \ && apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \ && apt-add-repository ppa:ondrej/php \ && apt-get update -y \ && apt-get install -y apache2 \ php${php_version} \ php${php_version}-soap \ php${php_version}-snmp \ php${php_version}-mysql \ php${php_version}-curl \ php${php_version}-ldap \ php${php_version}-xml \ php${php_version}-mbstring \ php${php_version}-oauth \ php${php_version}-gd \ php${php_version}-igbinary \ php${php_version}-memcached \ php${php_version}-msgpack \ php${php_version}-oauth \ php${php_version}-zip \ cron \ && apt-get purge gnupg gnupg1 gnupg2 software-properties-common -y \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/www/html/* \ && a2enmod rewrite COPY rootfs / WORKDIR /var/www/html EXPOSE 80 CMD ["/docker-entrypoint.sh"]