From 069294a07cbad5414a80695af967b69660417d6b Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Thu, 24 Oct 2024 09:08:14 -0500 Subject: [PATCH] Cache for npm. --- snakes/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snakes/Dockerfile b/snakes/Dockerfile index 05139c9..595b8f0 100644 --- a/snakes/Dockerfile +++ b/snakes/Dockerfile @@ -5,7 +5,8 @@ RUN npm install -g typescript ts-node WORKDIR /app COPY package*.json ./ -RUN npm install +RUN --mount=type=cache,target=/root/.npm \ + npm install COPY . .