I built a image use --builder paketobuildpacks/builder:base , but my app went wrong cause no permission.
> apt-get update
Reading package lists... Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Then i found that the run image of paketobuildpacks stacks sets the default user:
ARG cnb_uid=1000
ARG cnb_gid=1000
RUN groupadd cnb --gid ${cnb_gid} && useradd --uid ${cnb_uid} --gid ${cnb_gid} -m -s /bin/bash cnb
As i use k8s , I tried set runAsUser: 0
or --allow-privileged=true
force it to use root and it works, but this is not a good solution i thought.
How can i modify the default user group in pack build command?