Caching dependency compilation in Docker build

The provided dockerfile is not multistage. Have you tried using docker or are you just guessing?