Add some plugins to a php image or new php image for my project

This is the code I am using:

  service-php:
    build: ./apache-php
    image: image-apache-php-eb:v.1.0
    container_name: container-apache-php-vetrina-eb
    user: ${current_user}
FROM php:8.0.24RC1-apache
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
RUN sudo apt install exif imagemagick zip gd intl
LABEL Author="Federico"

I would like to add some plugins to an image I am using but I cannot. I think the reason is due to the fact that I am operating on the image with a non-root user. I am using the current user’s UID. Is there a more complete php image than the one I am using or a code that allows me to add the plugins I want?

Here’s what I get from the container shell:

I have no name!@98914fc69e1b:/var/www/html$ apt install exif imagemagick zip gd intl
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
I have no name!@98914fc69e1b:/var/www/html$ sudo apt install exif imagemagick zip gd intl
bash: sudo: command not found
I have no name!@98914fc69e1b:/var/www/html$