Skip to content

Commit

Permalink
Node 22 (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad authored Jan 22, 2025
1 parent d7eaf6f commit d08387c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
with:
dev-cluster: dev-gcp
prod-cluster: prod-gcp
node-version: 18
node-version: 22
distroless: true
secrets: inherit
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /syfomodiaperson

COPY server.ts package.json tsconfig.json ./
Expand All @@ -10,7 +10,7 @@ COPY dist ./dist
RUN npm install -g typescript @types/node
RUN tsc --build

FROM gcr.io/distroless/nodejs18-debian12
FROM gcr.io/distroless/nodejs22-debian12
WORKDIR /syfomodiaperson

COPY --from=builder /syfomodiaperson/package.json ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Node-app som kjører på Naiserator, og bygges med GitHub Actions

Applikasjonen har en mock som kan brukes lokalt. Her mockes diverse endepunkter, dog ikke alle.

Du må ha Node v18 og npm v9 installert.
Du må ha Node v22 og npm v10 installert.

- For å kjøre koden lokalt:
- `$ npm install`
Expand Down
54 changes: 20 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/node": "17.0.45",
"@types/node": "22.10.7",
"@types/react-document-title": "2.0.10",
"@types/react-router-dom": "5.3.3",
"@types/webpack": "5.28.5",
Expand Down

0 comments on commit d08387c

Please sign in to comment.