Quick & Easy: Install Nixstats on Alpine Linux

  • apk update
  • apk add build-base musl-dev zlib-dev openssl-dev libffi-dev binutils-gold linux-headers
  • curl https://pyenv.run | bash
  • exec $SHELL
  • export PYENV_ROOT="$HOME/.pyenv"
  • export PATH="$PYENV_ROOT/bin:$PATH"
  • eval "$(pyenv init --path)"
  • eval "$(pyenv init -)"
  • pyenv install 3.10
  • mkdir nixstats && cd nixstats
  • pip3 install nixstatsagent