RUN php --version on dockerfile code example Example: php docker offical apache FROM php:7.2-apache COPY src/ /var/www/html/