Create user and group from ENV vars and run service as user

Martin, did you ever figure out how to create a user from ENV vars when the container is started? I have a similar question here.