Skip to content

Commit 9af21eb

Browse files
Upgrade README Node.js v26 LTS + docker note
1 parent 14b1d12 commit 9af21eb

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ See: https://nodejs.org
5959

6060
```dockerfile
6161
# specify the node base image with your desired version node:<version>
62-
FROM node:24
62+
FROM node:26
6363
# replace this with your application's default port
6464
EXPOSE 8888
6565
```
@@ -76,7 +76,7 @@ If you prefer Docker Compose:
7676
```yml
7777
services:
7878
node:
79-
image: 'node:24'
79+
image: 'node:26'
8080
user: 'node'
8181
working_dir: /home/node/app
8282
environment:
@@ -91,9 +91,17 @@ services:
9191
You can then run using Docker Compose:
9292
9393
```console
94+
$ docker compose up -d
95+
```
96+
97+
Note: For older Docker installations where Docker Compose V2 is not integrated fully or Docker Compose V1 is used, you may still need to use:
98+
99+
```
94100
$ docker-compose up -d
95101
```
96102

103+
104+
97105
Docker Compose example mounts your current directory (including node_modules) to the container.
98106
It assumes that your application has a file named [`package.json`](https://docs.npmjs.com/files/package.json)
99107
defining [start script](https://docs.npmjs.com/misc/scripts#default-values).

0 commit comments

Comments
 (0)