mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 05:41:13 +00:00
Update Node.js to v22
This commit is contained in:
parent
d2d87c335d
commit
6bf1c19539
2 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ variables:
|
|||
|
||||
steps:
|
||||
fetch_git_submodules:
|
||||
image: node:20-alpine
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- apk add git
|
||||
- git submodule init
|
||||
|
@ -12,7 +12,7 @@ steps:
|
|||
- event: [pull_request, tag]
|
||||
|
||||
install:
|
||||
image: node:20-alpine
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- *install_pnpm
|
||||
- pnpm i
|
||||
|
@ -20,7 +20,7 @@ steps:
|
|||
- event: pull_request
|
||||
|
||||
lint:
|
||||
image: node:20-alpine
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- *install_pnpm
|
||||
- pnpm lint
|
||||
|
@ -28,7 +28,7 @@ steps:
|
|||
- event: pull_request
|
||||
|
||||
build_dev:
|
||||
image: node:20-alpine
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- *install_pnpm
|
||||
- pnpm prebuild:dev
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:20-alpine as builder
|
||||
FROM node:22-alpine as builder
|
||||
RUN apk update && apk add curl python3 build-base gcc wget git --no-cache
|
||||
RUN corepack enable pnpm
|
||||
|
||||
|
@ -30,7 +30,7 @@ RUN echo "export const BUILD_DATE_ISO8601 = '$(date -u +"%Y-%m-%dT%H:%M:%SZ")';"
|
|||
RUN pnpm i --prefer-offline
|
||||
RUN pnpm build:dev
|
||||
|
||||
FROM node:20-alpine as runner
|
||||
FROM node:22-alpine as runner
|
||||
COPY --from=builder /usr/src/app/dist /app/dist
|
||||
COPY --from=builder /usr/src/app/node_modules /app/node_modules
|
||||
|
||||
|
|
Loading…
Reference in a new issue