An yarn cache compatible Dockerfile, for building node.js images faster.
Clone this gist into your project root, and add it to your source control.
Change the image service-name:latest tag to your project name in the Dockerfile and build.sh files.
Then, always build your image using the build.sh script.
$ chmod +x ./build.sh
$ ./build.sh
I haven't used this docker-based workflow in a while, but hopefully others who ran into your issue can chime in!