I don't really know what directed you to the nginx+fpm+volumes in the first place.
FROM php:7.2-apache
COPY src/ /var/www/html/
and this is it. FROM php:7.2-apache
COPY src/ /var/www/html/
and this is it.