Simply run the binary for your platform. Or ship Gogs with Docker or Vagrant, or get it packaged.
Gogs runs anywhere Go can compile for: Windows, Mac, Linux, ARM, etc.
Gogs has low minimal requirements and can run on an inexpensive Raspberry Pi. Some users even run Gogs instances on their NAS devices.
Gogs is 100% open source and free of charge. All source code is available under the MIT License on GitHub.