If someone wants to play with it, here is a barebone Dockerfile:
FROM debian
RUN apt update
RUN apt install -y libjson-perl libnet-dns-perl libnet-netmask-perl build-essential git
RUN git clone https://github.com/jschauma/spf/ && cd spf && make install
ENTRYPOINT [ "spf" ]