Skip to content

Commit

Permalink
deps: use a fixed node.js version to prevent build issues with unknow…
Browse files Browse the repository at this point in the history
…n versions

* fixed to node.js 16.16.0 including npm 8.11.0
  • Loading branch information
shauke committed Jul 13, 2022
1 parent 0105006 commit 841feba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# synchronize-marker:docker-cache-share:begin
FROM node:16-alpine as buildstep
FROM node:16.16.0-alpine as buildstep
ENV CI=true
WORKDIR /workspace
COPY package.json package-lock.json /workspace/
Expand Down Expand Up @@ -27,7 +27,7 @@ RUN npm run build:multi server
RUN node scripts/compile-docker-scripts
COPY dist/* /workspace/dist/

FROM node:16-alpine
FROM node:16.16.0-alpine
COPY --from=buildstep /workspace/dist /dist
RUN cd dist && npm install
ARG displayVersion=
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_reports
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# To build this report image, you will have to temporarily truncate the .dockerignore

# synchronize-marker:docker-cache-share:begin
FROM node:16-alpine as buildstep
FROM node:16.16.0-alpine as buildstep
ENV CI=true
WORKDIR /workspace
COPY package.json package-lock.json /workspace/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"intershop"
],
"engines": {
"node": ">=16.14.2",
"npm": ">=8.5.0"
"node": "16.16.0",
"npm": "8.11.0"
},
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile_dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 as buildstep
FROM node:16.16.0-alpine as buildstep
ENV CI=true
COPY . /workspace/
WORKDIR /workspace
Expand Down

0 comments on commit 841feba

Please sign in to comment.