failed to solve: process "/bin/sh -c chown ${COMPANY}: /opt/${COMPANY}/mediaserver/var/" did not complete successfully: unable to find user mycompany: no matching entries in passwd file
but that causes the build to fail the build with the default env with the error the user already exists
so the final fix is
chown: cannot access '/opt/mycompany/mediaserver/var/': No such file or directory
nxvms-docker-mediaserver-1 | Loading user's custom *.sh,*.py scripts from /opt/mediaserver/entrypoint.d
nxvms-docker-mediaserver-1 | Launching mediaserver
nxvms-docker-mediaserver-1 | /opt/mediaserver/entrypoint.sh: line 32: /opt/mycompany/mediaserver/bin/mediaserver: No such file or directory