Skip to content

Commit

Permalink
Docker tweaks and node update
Browse files Browse the repository at this point in the history
Signed-off-by: kingthorin <[email protected]>

Node 22 everywhere

Signed-off-by: kingthorin <[email protected]>
  • Loading branch information
kingthorin committed Dec 31, 2024
1 parent 42343c6 commit 552e9dd
Show file tree
Hide file tree
Showing 6 changed files with 1,473 additions and 1,421 deletions.
2 changes: 1 addition & 1 deletion .github/actions/update-website/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ inputs:
description: 'the email of the pull request author'
required: true
runs:
using: 'node20'
using: 'node22'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion .github/workflows/check-dist-update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: '22'

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Install npm dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
FROM node:18
FROM node:22

COPY package-lock.json package.json /app/
COPY package-lock.json package.json /app/

WORKDIR /app

RUN npm install

COPY .babelrc \
.eslintrc.yml \
.nvmrc \
postcss.config.js \
webpack.common.js \
webpack.dev.js \
COPY .babelrc \
.eslintrc.yml \
.nvmrc \
postcss.config.js \
webpack.common.js \
webpack.dev.js \
webpack.prod.js /app/

COPY site/ /app/site
COPY src/ /app/src

RUN npm run build
CMD npm run preview

CMD ["npm", "run", "preview"]
Loading

0 comments on commit 552e9dd

Please sign in to comment.