Building libresize and libtranscode:
This must be done on a Debian stretch system or chroot.
First, clone https://github.com/mickael-kerjean/filestash.
cd filestash/server/plugin/plg_image_light/deps/
Copy ./create_libresize.sh from this gist over and run it
Copy ./create_libtranscode.sh from this gist over and run it
cd back into the root of filestash and run
mkdir -p ./dist/data/state/config
cp config/config.json ./dist/data/state/config/