Binary

Ubuntu, Centos/Redhat/AWS-Linux/etc (rh7+), openSuse and similar:    
Za version 1.2.2 is available here.

The location of the Za binary is left up to the end user. We recommend /usr/local/bin/ or /usr/bin/ if that does not conflict with other software. Alternatively, just keep it local to where it is used.

Source

Source code for Za is available for download here    
It is also available on github: here

First installation (Ubuntu 20.04+):

# install go 1.22+ - you may need to add ppa:longsleep/golang-backports repository first.    
sudo apt update    
sudo apt install -y golang-go

# install libraries/development files

# - libffi only required if scripts will use .so files
sudo apt install -y libffi-dev

# - pcre3 only required if scripts will use reg_*() calls - typically for faster regex work
sudo apt install -y libpcre3-dev

# - libjson-c only required for running the za_tests/ffi/* FFI tests
sudo apt install -y libjson-c-dev

# install upx if required (for compressed build binary)
sudo apt install upx

# if using WSL/Ubuntu, you may also need to install gcc and pkgconf
# sudo apt install -y gcc pkgconf

# unpack source tar    
tar -xzvf za-1.2.2.tgz && cd go/src/za

# initial build    
go build za

# install (assuming /usr/bin/za does not already exist!)
# or choose an alternative location.sudo cp za /usr/bin/za

On subsequent builds:

cd go/src/za
./build upx strip

# last step is ./build arch upx strip on arch linux variants
# upx and strip tags are optional. use them to decrease the binary size

... then copy za executable to where you need it/import in dockerfile.