aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorVaiTon2023-04-29 17:38:09 +0000
committerVaiTon2023-04-29 17:38:09 +0000
commit45b809f3df9c267045d3617608228a04390fea06 (patch)
treef5e80a5e2fe249737288f9dbdb73e225d201a6a5 /Dockerfile
parent03c864d235458eb63403368e10f27651abd704ca (diff)
Reduce docker build time via dependency caching
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
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