Make sure you have Golang v1.12 or newer, then run:
$ git clone [email protected]:gravitational/gravity.git
$ cd gravity
# Running 'make' with the default target uses Docker.
# The output will be stored in build/[VERSION]/
# If you have Go 1.12+ installed, you can build without Docker which is faster.
# The output will be stored in $GOPATH/bin/
$ make install
# To remove the build artifacts:
$ make clean