Docker / Run container as non-root 1000:1000 / dependencies

Hi,
I just moved my HAOS installation to docker.
Nearly everything went fine - however I got a basic docker related question.
My purpose was to run every container with user 1000:1000, so I can edit and backup volumes easily.

When running my HA container with 1000:1000 it fails installing depenencies (like icalevents for waste collection schedule). Running the container with root access everything works.

How can I achieve, that I can run the container with 1000:1000 ?

solved.
created a custom docker image with the missing pip packages (icalevents…) and run this newly build image with 1000:1000

Can you explain, how to

“create a custom docker image with the missing pip packages”

I am using
image: ghcr.io/home-assistant/home-assistant:stable
in my docker-compose.