Do note that compilation can take a while, be slow and have heavy resources consumption.
The initial build will have to download and compile every dependency which may take a while.
If you intend to build the docker image, ensure your docker provides the sufficient ressources - e.g: memory - in order to avoid panic errors at compile time.
- Clone the project :
git clone <project_url>
- go to the folder and build the binary :
cargo build
This will compile the project with dependencies install and compiling if needed.
then you can run it :
cargo run
The repo provides a Dockerfile to build an image with the compiled binary of the server.
You can build your own image with
docker build .
If you need to build an image for another target like arm64 ( e.g: for Raspberry ) you can use the following command :
docker buildx build --platform linux/arm64 .