From 12002fb59cbc1baceb1b42a8eab03e864a8d4617 Mon Sep 17 00:00:00 2001 From: Aurora <5505558+duggalsu@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:18:06 +0530 Subject: [PATCH] - Added ignore-scripts flag to api-server Dockerfile - Fixed husky pre-commit folder name in api-server --- browser-extension/api-server/.husky/pre-commit | 2 +- browser-extension/api-server/Dockerfile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/browser-extension/api-server/.husky/pre-commit b/browser-extension/api-server/.husky/pre-commit index 0c8ea4f6..346f5d1d 100755 --- a/browser-extension/api-server/.husky/pre-commit +++ b/browser-extension/api-server/.husky/pre-commit @@ -1,5 +1,5 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -cd "browser extension/api-server" +cd "browser-extension/api-server" npm run pre-commit diff --git a/browser-extension/api-server/Dockerfile b/browser-extension/api-server/Dockerfile index b359b0fb..a2a5f0dd 100644 --- a/browser-extension/api-server/Dockerfile +++ b/browser-extension/api-server/Dockerfile @@ -3,9 +3,9 @@ WORKDIR /app COPY package.json /app/package.json RUN cd /app -RUN npm install -RUN npm install sequelize-cli -RUN npm install -g nodemon +RUN npm install --ignore-scripts +RUN npm install sequelize-cli --ignore-scripts +RUN npm install -g nodemon --ignore-scripts COPY ./entrypoint.sh / RUN chmod +x /entrypoint.sh USER node