RocketChat source build with Community Edition

I want to build RocketChat using the Community Edition.

So, I downloaded the open source from GitHub and then used the following commands:

yarn install ,yarn fossify,yarn build

cd /Rocket.Chat/apps/meteor

meteor build --directory ../../../rocketchat-build --server-only --architecture os.linux.x86_64

This process was successful.

Next, I created a Dockerfile and a docker-mycompose.yml file in the newly created rocketchat-build folder, built a Docker image, and ran it.

Then, the following error occurred:

“Cannot find module ‘@rocket.chat/federation-matrix’”

How can I resolve this issue?

You need to read all the docs first.

://developer.rocket.chat/v1/docs/server

Also read all this doc.