hs-test: optimize size of docker image