Codespaces Firebase and Stripe

I am having trouble setting up a firebase emulators that run functions and stripe cli for authenticating and forwarding a port.

I created a devcontainer to help with this but kept on getting error messages with installing firebase cli - no Java sdk found and with stripe it installs but cannot find the bash command stripe when I try to do stripe login.

Am looking for help setting up Dev containers or just running these commands in vscode docker cli

Could someone share with me a devcontainer or command lines to run and install stripe and firebase emulators

I also have issues with cors. Is there a solution for that?