Merge pull request #212 from hugomd/fix/use-production

Install production dependencies with lockfile
This commit is contained in:
Mike Cao authored and GitHub committed 2020-09-23 21:31:03 -07:00
commit 9f9715f4a9
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ WORKDIR /build
COPY package.json yarn.lock /build/
# Install only the production dependencies
RUN yarn install --frozen-lockfile
RUN yarn install --production --frozen-lockfile
# Cache these modules for production
RUN cp -R node_modules/ prod_node_modules/