From 45b809f3df9c267045d3617608228a04390fea06 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sat, 29 Apr 2023 19:38:09 +0200 Subject: Reduce docker build time via dependency caching --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 41ca2f1..a77c109 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,9 +24,10 @@ RUN export VERSION=$(git describe --tags --abbrev=0) && \ FROM node:16 as FRONTEND_BUILDER WORKDIR /caronte-frontend +COPY ./frontend/package.json ./frontend/yarn.lock ./ +RUN yarn install --frozen-lockfile COPY ./frontend ./ - RUN yarn install && yarn build --production=true -- cgit v1.2.3-70-g09d2