Hi,
I think the if statement in the entrypoint.sh is wrong since you check if the current miktex UID is different from 1000.
This basically should never be true since you will change the UID only later. I think you want to compare against MIKTEX_UID.
Kind regards,
Robert