From e961c46be2f673ba561000858ef8ab5e67b93e0d Mon Sep 17 00:00:00 2001 From: Okwuidegbe Emmanuel Date: May 03 2021 09:49:55 +0000 Subject: cache image layer in Dockerfile --- diff --git a/Dockerfile b/Dockerfile index f721f93..24326f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ FROM node:8 as react-build WORKDIR /app +COPY package.json yarn.lock ./ +RUN yarn COPY . ./ RUN chmod -v +x ./start.sh -RUN yarn RUN yarn build