For anyone else, run the following command:
bundle install --gemfile ./Gemfile
from the /var/www/discourse/workspace/discourse directory.
Then, re-run bin/ember-cli -u and it should work. I’m just now learning codespaces, so not sure yet if this can be resolved in advance or not but it seems like it could be.