Palette / nodes install offline docker permissions?

Tried using this in a docker compose file, but I am having issues with installing nodes, if i use the pallete and tgz files it failes after a while, if i use docker exec -it node-red npm install .tgz it fails with permission errors. I have read various different solutions but i cant get it to work.

So for context, i have a Virtual server that a customer has supplied for us, it is not connected to the internet so i have installed docker, docker compose and node-red by using either deb-files or adding local tar-images for stuff like grafana-enterprise, influxdb and node-red. the install works great everything is up and running but i'am having a hardtime with the permissions and installing nodes. our user account on the server has UID:GID 1003:1003 and has sudo privileges. should I alter the docker compose file, or could this be due to dependencies missing and in that case what would be the best way to solve dependencies on an offline machine?

 node-red:
    image: nodered/node-red:latest
    container_name: node-red
    environment:
      - TZ=Europe/Stockholm
    ports:
      - "1880:1880"
    networks:
      - node-red-net
    volumes:
      - node-red:/data

networks:
  node-red-net:

volumes:
  node-red:

I did not get exactly what trouble there is with docker. I ported my raspi 4 stuff to a PC running windows with docker and using the official Node Red docker images (WSL2). There is a bunch of stuff I use and everything work fine. I could offer to post my docker compose and docker files if it could help.