diff options
author | VaiTon | 2023-04-29 17:38:09 +0000 |
---|---|---|
committer | VaiTon | 2023-04-29 17:38:09 +0000 |
commit | 45b809f3df9c267045d3617608228a04390fea06 (patch) | |
tree | f5e80a5e2fe249737288f9dbdb73e225d201a6a5 | |
parent | 03c864d235458eb63403368e10f27651abd704ca (diff) |
Reduce docker build time via dependency caching
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |