Skip to content

Commit

Permalink
fix: Add version check in docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Jan 8, 2025
1 parent d1c8b43 commit 32a2efd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/images/kuzzle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ADD ./package.json package.json
ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json
ADD ./check-node-version.js check-node-version.js

Check notice

Code scanning / SonarCloud

Prefer COPY over ADD for copying local resources Low

Replace this ADD instruction with a COPY instruction. See more on SonarQube Cloud

RUN npm ci
RUN npm run build
Expand Down
1 change: 1 addition & 0 deletions docker/images/plugin-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ADD ./package.json package.json
ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json
ADD ./check-node-version.js check-node-version.js

Check notice

Code scanning / SonarCloud

Prefer COPY over ADD for copying local resources Low

Replace this ADD instruction with a COPY instruction. See more on SonarQube Cloud

RUN npm ci
RUN npm run build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
"bin": "bin/start-kuzzle-server",
"scripts": {
"preinstall": "node ./check-node-version",
"preinstall": "node ./check-node-version.js",
"build": "tsc",
"clean": "touch index.ts && npm run build | grep TSFILE | cut -d' ' -f 2 | xargs rm",
"cucumber": "cucumber.js --fail-fast",
Expand Down

0 comments on commit 32a2efd

Please sign in to comment.