Files
anubis/docs/docs/developer/building-anubis.md
T
Xe Iaso 266d8c0cc2 add a Makefile (#191)
* add a Makefile

Based on advice from IRC, a makefile helps downstream packagers
understand how to build the software.

Signed-off-by: Xe Iaso <me@xeiaso.net>

* Apply review suggestions

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-04-02 23:57:28 +00:00

1.2 KiB

title
title
Building Anubis without Docker

:::note

These instructions may work, but for right now they are informative for downstream packagers more than they are ready-made instructions for administrators wanting to run Anubis on their servers.

:::

Tools needed

In order to build a production-ready binary of Anubis, you need the following packages in your environment:

  • Go - the programming language that Anubis is written in
  • esbuild - the JavaScript bundler Anubis uses for its production JS assets
  • Node.JS & NPM - manages some build dependencies
  • gzip - compresses production JS (part of coreutils)
  • zstd - compresses production JS
  • brotli - compresses production JS

Install dependencies

make deps

This will download Go and NPM dependencies.

Building static assets

make assets

This will build all static assets (CSS, JavaScript) for distribution.

Building Anubis to the ./var folder

make build

From this point it is up to you to make sure that ./var/anubis ends up in the right place. You may want to consult the ./run folder for useful files such as a systemd unit and anubis.env.default file.