From 14b9079025572f653bdf611b2075d5402200c43c Mon Sep 17 00:00:00 2001 From: Taken Date: Thu, 30 Nov 2023 19:08:14 +0100 Subject: [PATCH] Updted docker files Signed-off-by: Taken --- Dockerfile | 5 +++++ Dockerfile.cache | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile.cache diff --git a/Dockerfile b/Dockerfile index ee3a826..a2ecf29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ +FROM node-cache as cache + FROM node:20.9.0-alpine3.18 +COPY --from=cache /node_modules /app/node_modules +COPY package.json /app +COPY yarn.lock /app COPY . /app WORKDIR /app diff --git a/Dockerfile.cache b/Dockerfile.cache new file mode 100644 index 0000000..e73736f --- /dev/null +++ b/Dockerfile.cache @@ -0,0 +1,6 @@ +FROM node:20.9.0-alpine3.18 + +COPY package.json ./ +COPY yarn.lock ./ + +RUN yarn install