PHP - CodeIgniter Application - deployment error

I am getting error while deployment of PHP (CodeIgniter) application. I don’t want any runtime installation. And I see the issue is related to something PHP version but I am not sure. So can anyone help me to resolve issue ASAP. This is testing environment and After running successful on testing I have to create new production server.

Error Image:


Hi, I would highly recommend using a Dockerfile instead of Buildpacks.

I am use Dockerfile. But still not working. You can see attached image

Here is my docker file:

FROM php:7.4.1-apache
COPY . /var/www/html/ONEID
RUN echo “ServerName localhost:80” >> /etc/apache2/apache2.conf
RUN docker-php-ext-install pdo_mysql

I see something is wrong with docker image pulling. Can anyone help me please?