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 <kingthorin@users.noreply.github.com>

Node 22 everywhere

Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
  • Loading branch information
kingthorin committed Dec 31, 2024
1 parent 42343c6 commit af1a696
Show file tree
Hide file tree
Showing 6 changed files with 1,484 additions and 1,432 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
43 changes: 22 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
FROM node:18

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 \
webpack.prod.js /app/

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

RUN npm run build
CMD npm run preview
FROM node:22

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 \
webpack.prod.js /app/

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

RUN npm run build

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

0 comments on commit af1a696

Please sign in to comment.