ccfontes / faas-idris2

An OpenFaaS template for writing Functions in Idris 2.
MIT License
2 stars 0 forks source link

Run Function as non-root user #4

Closed ccfontes closed 1 year ago

ccfontes commented 1 year ago

Error when runnng as non-root user:

Function invoke time error:
   mkdir: cannot create directory '/home/app/.pack/.tmp0': Permission denied
   /home/app/.pack/bin/idris2: 7: [: missing ]
 FIXME: fix errors above for this user:

Dockerfile related code:

 RUN groupadd app && useradd -g app app
 USER app:app