From d3d71344f42bd848e1f214a3f522ea896e1c30e5 Mon Sep 17 00:00:00 2001 From: baraganio Date: Sun, 28 Apr 2024 18:36:31 +0200 Subject: [PATCH] Arreglando security hotsposts de npm install --- gatewayservice/Dockerfile | 2 +- gatewayservice/gateway-service.js | 2 +- questions/creationservice/Dockerfile | 2 +- questions/retrieveservice/Dockerfile | 2 +- users/authservice/Dockerfile | 2 +- users/userservice/Dockerfile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gatewayservice/Dockerfile b/gatewayservice/Dockerfile index 6c340432..7c030c37 100644 --- a/gatewayservice/Dockerfile +++ b/gatewayservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/gatewayservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 5f469303..30771bb7 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -9,7 +9,7 @@ const YAML = require('yaml') const app = express(); -app.disable('x-powerde-by'); +app.disable('x-powered-by'); const port = 8000; const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000'; diff --git a/questions/creationservice/Dockerfile b/questions/creationservice/Dockerfile index af3648d2..8c20d4f8 100644 --- a/questions/creationservice/Dockerfile +++ b/questions/creationservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/creationservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/questions/retrieveservice/Dockerfile b/questions/retrieveservice/Dockerfile index 838d0d31..426b235b 100644 --- a/questions/retrieveservice/Dockerfile +++ b/questions/retrieveservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/retrieveservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/users/authservice/Dockerfile b/users/authservice/Dockerfile index 70648d70..af171fc5 100644 --- a/users/authservice/Dockerfile +++ b/users/authservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/authservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . . diff --git a/users/userservice/Dockerfile b/users/userservice/Dockerfile index f43e2df7..f54225c9 100644 --- a/users/userservice/Dockerfile +++ b/users/userservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/userservice COPY package*.json ./ # Install app dependencies -RUN npm install +RUN npm install --ignore-scripts # Copy the app source code to the working directory COPY . .