Static CairoMakie

Install all dependencies

apt-get update
apt-get install build-essential -y
apt-get install ffmpeg
pkg"up; add PackageCompiler#sd-pkg3 StatsMakie MakieGallery#master CairoMakie#master AbstractPlotting"
using PackageCompiler
PackageCompiler.compile_incremental(:CairoMakie, :StatsMakie, :ColorBrewer, force = true);
# Make sure system image actually got replaced!
x = PackageCompiler.sysimg_folder("sys.so")
y = unsafe_string(Base.JLOptions().image_file)

# for some reason, compile_incremental(force = true) doesn't always work
# but also doesn't throw any error... Filesystem problems?!
if read(x) != read(y)
  cp(x, y, force = true)
end
@assert read(x) == read(y)