Modify parts of entrypoint.sh but still get updates of image

Hey there,

I’m using an official image from docker hub but I would like to modify/add parts to the entrypoint.sh I could do that by building my own image ofc BUT I still want to get the image updated with docker pull.

So is it somehow possible to modify/add parts to a certain file of the image but the rest can be updated normally?

Please tell me if you need more information.

Best regards

EDIT:

Already found a solution…

Using a Dockerfile with the original source image. Then run commands to edit the file you want to edit.