From 7324243b4edbd8329b896aa0f97e4c55e286eaa3 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sat, 23 Jun 2018 19:29:14 +0530 Subject: [PATCH] build: lock npm package versions --- .gitlab-ci.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a52d60e..90a484d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ build-src: - curl -sL https://deb.nodesource.com/setup_10.x | bash - - apt update - apt install -y nodejs - - npm install -g html-minifier uglify-js sass + - npm install -g html-minifier@3.5.7 uglify-js@3.4.1 sass@1.5.1 - mkdir -p src/gitlab.com/commento && cd src/gitlab.com/commento && ln -s $CI_PROJECT_DIR && cd $CI_PROJECT_NAME - make devel - make prod diff --git a/Dockerfile b/Dockerfile index 8864575..5c08751 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY ./frontend /commento-ce/frontend/ WORKDIR /commento-ce/frontend/ RUN apk update && apk add bash make -RUN npm install -g html-minifier uglify-js sass +RUN npm install -g html-minifier@3.5.7 uglify-js@3.4.1 sass@1.5.1 RUN make prod