Skip to content

Commit

Permalink
Upgrade Node to 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
aatuny committed Jan 4, 2024
1 parent 3c27842 commit fc3d5d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/kb-node-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/node:18-alpine as builder
FROM docker.io/node:20-alpine as builder
WORKDIR /home/node

COPY --chown=node:node . build
Expand All @@ -8,7 +8,7 @@ RUN apk add -U --no-cache --virtual .build-deps git sudo \
&& sudo -u node sh -c 'cp -r build/dist/* build/package.json build/package-lock.json .' \
&& sudo -u node sh -c 'npm i --ignore-scripts --production'

FROM docker.io/node:18-alpine
FROM docker.io/node:20-alpine
CMD ["/usr/local/bin/node", "index.js"]
WORKDIR /home/node
USER node
Expand Down

0 comments on commit fc3d5d4

Please sign in to comment.