I have seen a few issues that mention that changing the port that nginx
listens on is important (especially when using hostNetwork).
I am not totally convinced that NPM should allow these use-cases but I
was bored enough to implement it anyway.
Related Issue: #4122
with PUID and PGID environment variables
- Detects if image is run with a user in docker command and fails if so
- Adds s6 prepare scripts for adding a 'npmuser'
- Split up and refactor the s6 prepare scripts
- Runs nginx and backend node as 'npmuser'
- Changes ownership of files required at startup