I’m trying to build a fairly simple angular2 project using a custom Docker file that runs “npm install” and “ng build”.
drone exec to test the pipeline locally. Drone is setup using the official installation instructions on local machine. It seems that there is no Docker Layer cache used at all. Every time I run
drone exec it pulls the Image (node), and runs again all the steps which ends up taking a lot amount of time for something that hasnt changed. This is not the cache when I use docker locally, as it will correctly take advantage of the cached layers. Am I doing something wrong or is there no layer cache at all…? I’ve search in the forums but I only found outdated topics and github issues from 2016 that are solved.
I haven’t tested yet if this behavior is only related to
drone-cli or not.
The pipeline is simple as well:
pipeline: build: image: node:9.11 commands: - node --version - npm --version docker: image: plugins/docker repo: myregistry/myimage tags: latest