Skip to content

Commit

Permalink
qa: ensure that the container node version is allowed by the projects…
Browse files Browse the repository at this point in the history
… `package.json` engine version range

Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Apr 24, 2024
1 parent 7961bb3 commit ed19123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COPY package*.json ./
COPY tsconfig.json ./
COPY webpack.config.ts ./
RUN npm ci
RUN apk add --no-cache jq && npx semver -r $(jq -r '.engines.node' package.json) $(node -v) || (echo "ERROR: Container node version is not allowed by projects package.json engine range." && exit 1)
COPY ./src ./src
RUN npm run build

Expand Down

0 comments on commit ed19123

Please sign in to comment.