From e139d724299567b67f85d4cafb79d1c5edb97961 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sun, 29 Oct 2017 20:17:37 +0100 Subject: [PATCH] Don't regenerate `yarn.lock` on build --- alpine/Dockerfile | 4 ++-- debian/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 68411e2..f4d69a1 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -33,8 +33,8 @@ RUN apk add --no-cache --virtual .dep build-base python git bash && \ rm -f /hackmd/config.json && ln -s /files/config.json /hackmd/config.json && \ rm -f /hackmd/.sequelizerc && ln -s /files/.sequelizerc /hackmd/.sequelizerc && \ # Install NPM dependencies and build project - yarn install && \ - yarn install --production=false && \ + yarn install --pure-lockfile && \ + yarn install --production=false --pure-lockfile && \ yarn global add webpack && \ npm run build && \ # Clean up this layer diff --git a/debian/Dockerfile b/debian/Dockerfile index 19f2939..14d81ae 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -33,8 +33,8 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main" > /etc/ rm -f /hackmd/.sequelizerc && ln -s /files/.sequelizerc /hackmd/.sequelizerc && \ # Install NPM dependencies and build project - yarn install && \ - yarn install --production=false && \ + yarn install --pure-lockfile && \ + yarn install --production=false --pure-lockfile && \ yarn global add webpack && \ npm run build && \