scancode.io
scancode.io copied to clipboard
Docker: run as non-root user, use venv
- Run as non-elevated user by default
- Install scancodeio in venv
- Make it possible to set up UNAME/UID/GID on buildtime
- Move scancodeio from /app to /opt to be more in-line with: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
- Set cache to /tmp as it is disposable after build
- Upgrade pip to have less red in build log
Resolves #260 Resolves #399
Signed-off-by: Alexander Mazuruk [email protected]
Thanks!
Hi @aalexanderr this looks great. I see it's still labeled as WIP, anything else you planned to add?
gentle ping
sorry for late come-back. added home dir (scancode-toolkit cache defaults to this dir), set group id for opt, should be ready to merge
Implemented in https://github.com/nexB/scancode.io/pull/821 using some of the ideas form this PR. Thanks @aalexanderr !