Skip to content

Commit ed19123

Browse files
committed
qa: ensure that the container node version is allowed by the projects package.json engine version range
Signed-off-by: Maximilian Bösing <[email protected]>
1 parent 7961bb3 commit ed19123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY package*.json ./
66
COPY tsconfig.json ./
77
COPY webpack.config.ts ./
88
RUN npm ci
9+
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)
910
COPY ./src ./src
1011
RUN npm run build
1112

0 commit comments

Comments
 (0)