Install production dependencies with lockfile

This commit is contained in:
Hugo Müller-Downing 2020-09-24 13:12:38 +10:00
parent 17a40d15e3
commit 8fb2a8aa84

View File

@ -8,7 +8,7 @@ WORKDIR /build
COPY package.json yarn.lock /build/ COPY package.json yarn.lock /build/
# Install only the production dependencies # Install only the production dependencies
RUN yarn install --frozen-lockfile RUN yarn install --production --frozen-lockfile
# Cache these modules for production # Cache these modules for production
RUN cp -R node_modules/ prod_node_modules/ RUN cp -R node_modules/ prod_node_modules/