Browse Source

Upgrade to Node.js 18

pull/2053/head
Thomas 2 years ago
parent
commit
68b7e9e41b
  1. 2
      .github/workflows/build-code.yml
  2. 2
      .nvmrc
  3. 4
      Dockerfile
  4. 2
      README.md
  5. 2
      package.json

2
.github/workflows/build-code.yml

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
node_version:
- 16
- 18
steps:
- name: Checkout code
uses: actions/checkout@v3

2
.nvmrc

@ -1 +1 @@
v16
v18

4
Dockerfile

@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM node:16-slim as builder
FROM --platform=$BUILDPLATFORM node:18-slim as builder
# Build application and add additional files
WORKDIR /ghostfolio
@ -50,7 +50,7 @@ COPY package.json /ghostfolio/dist/apps/api
RUN yarn database:generate-typings
# Image to run, copy everything needed from builder
FROM node:16-slim
FROM node:18-slim
RUN apt update && apt install -y \
openssl \
&& rm -rf /var/lib/apt/lists/*

2
README.md

@ -145,7 +145,7 @@ Please follow the instructions of the Ghostfolio [Unraid Community App](https://
### Prerequisites
- [Docker](https://www.docker.com/products/docker-desktop)
- [Node.js](https://nodejs.org/en/download) (version 16)
- [Node.js](https://nodejs.org/en/download) (version 18+)
- [Yarn](https://yarnpkg.com/en/docs/install)
- Create a local copy of this Git repository (clone)
- Copy the file `.env.example` to `.env` and populate it with your data (`cp .env.example .env`)

2
package.json

@ -198,7 +198,7 @@
"typescript": "4.9.5"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"importSort": {
".ts": {

Loading…
Cancel
Save