Skip to content

Commit 6dbdfe5

Browse files
author
Gonzalo Diaz
committed
[BUGFIX] [CONFIG] [Docker] sonarlint(docker:S6505) FIXED.
https://rules.sonarsource.com/docker/RSPEC-6505/
1 parent 99a587e commit 6dbdfe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ COPY ./package.json ${WORKDIR}/package.json
6161
COPY ./package-lock.json ${WORKDIR}/package-lock.json
6262
COPY ./Makefile ${WORKDIR}/
6363

64-
RUN npm ci --verbose
64+
RUN npm ci --verbose --ignore-scripts
6565
RUN ls -alh
6666

6767
# CMD []
@@ -77,7 +77,7 @@ COPY ./package.json ${WORKDIR}/package.json
7777
COPY ./package-lock.json ${WORKDIR}/package-lock.json
7878
COPY ./Makefile ${WORKDIR}/
7979

80-
RUN rm -vfr node_modules && npm ci --verbose --omit=dev
80+
RUN rm -vfr node_modules && npm ci --verbose --omit=dev --ignore-scripts
8181
RUN npm run build
8282

8383
CMD ["ls", "-alh"]

0 commit comments

Comments
 (0)