File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ WORKDIR /app
88COPY package.json package-lock.json ./
99
1010# Install dependencies
11- RUN npm ci
11+ RUN npm ci --ignore-scripts
1212
1313# Copy the source code to the /app directory
1414COPY . .
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ WORKDIR /app
88COPY package.json package-lock.json ./
99
1010# Install dependencies
11- RUN npm ci
11+ RUN npm ci --ignore-scripts
1212
1313# Copy the source code to the /app directory
1414COPY . .
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ WORKDIR /opt/app-root/
99
1010COPY --chown=node:node package*.json ./
1111
12- RUN npm ci
12+ RUN npm ci --ignore-scripts
1313
1414COPY --chown=node:node . .
1515
@@ -32,7 +32,7 @@ COPY --chown=node:node . .
3232
3333RUN npm run build ${NEST_APP}
3434
35- RUN npm ci --only=production && npm cache clean --force
35+ RUN npm ci --ignore-scripts -- only=production && npm cache clean --force
3636
3737USER node
3838
@@ -65,4 +65,4 @@ RUN mkdir -p /vault/secrets
6565RUN touch /vault/secrets/config
6666RUN . /vault/secrets/config
6767
68- CMD [ "node" , "dist/main.js" ]
68+ CMD [ "node" , "dist/main.js" ]
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ RUN chown node:node /opt/app-root/
55
66COPY --chown=node:node package*.json ./
77
8- RUN npm ci
8+ RUN npm ci --ignore-scripts
99
1010COPY --chown=node:node . .
1111
12- CMD ["npm", "run", "start:dev"]
12+ CMD ["npm", "run", "start:dev"]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN npm config set cache $/opt/app-root/.npm
1313
1414COPY package*.json ./
1515
16- RUN npm ci
16+ RUN npm ci --ignore-scripts
1717
1818ARG environment=production
1919
@@ -24,4 +24,4 @@ ENV NEST_APP=${NEST_APP}
2424
2525COPY . .
2626
27- CMD [ "./migrate.sh" ]
27+ CMD [ "./migrate.sh" ]
You can’t perform that action at this time.
0 commit comments