e961c46
@@ -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
I've added support for package.json and yarn.lock file cache in the dockerfile. see #70.
To enable container image faster build time.
By caching package.json and yarn.lock file in the dockerfile before the run yarn command.
What?
I've added support for package.json and yarn.lock file cache in the dockerfile. see #70.
Why?
To enable container image faster build time.
How?
By caching package.json and yarn.lock file in the dockerfile before the run yarn command.