Skip to content

Commit 65dee93

Browse files
committed
Docker tweaks and node update
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com> Node 22 everywhere Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
1 parent 42343c6 commit 65dee93

File tree

6 files changed

+1469
-1423
lines changed

6 files changed

+1469
-1423
lines changed

.github/actions/update-website/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ inputs:
1414
description: 'the email of the pull request author'
1515
required: true
1616
runs:
17-
using: 'node20'
17+
using: 'node22'
1818
main: 'dist/index.js'

.github/workflows/check-dist-update-website.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 20.x
27+
node-version: '22'
2828

2929
- name: Install dependencies
3030
run: npm ci

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install node.js
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: '20'
17+
node-version: '22'
1818

1919
- name: Install npm dependencies
2020
run: npm install

.github/workflows/update-website.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup node
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: '20'
16+
node-version: '22'
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919
with:

Dockerfile

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
FROM node:18
1+
FROM node:22
22

3-
COPY package-lock.json package.json /app/
3+
COPY package-lock.json package.json /app/
44

55
WORKDIR /app
66

77
RUN npm install
88

9-
COPY .babelrc \
10-
.eslintrc.yml \
11-
.nvmrc \
12-
postcss.config.js \
13-
webpack.common.js \
14-
webpack.dev.js \
15-
webpack.prod.js /app/
16-
9+
COPY .babelrc .eslintrc.yml .nvmrc postcss.config.js webpack.common.js webpack.dev.js webpack.prod.js /app/
10+
1711
COPY site/ /app/site
1812
COPY src/ /app/src
1913

20-
RUN npm run build
21-
CMD npm run preview
14+
RUN npm run build && rm -rf /app/site/.hugo_build.lock
15+
16+
CMD ["npm", "run", "preview"]

0 commit comments

Comments
 (0)