Replies: 1 comment 3 replies
-
How do you do this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a problem I can't figure out on my own, I wanted to ask for some pointers in troubleshooting my setup.
I have a Node.js repo and application, and I have a Dockerfile set up for it. A minimal repro of the Dockerfile is this:
Now, when I build it locally, I get all the steps cached right there on the first run:
However, when I build this in my k8s cluster with nerdctl, the
RUN npm ci
step is not cached.The other steps are good - in my production dockerfile I have a few more steps (installations of custom libs etc) and they all get cached - but the
RUN npm ci
is never cached, and always runs anew.Where could I start to look at the problem here? Why isn't it cached? What's the difference between nerdctl and docker build?
I've searched around the internet with no luck, and my Stackoverflow question isn't getting any responses.
Beta Was this translation helpful? Give feedback.
All reactions