Skip to content

Commit

Permalink
Merge pull request #71 from wdarking/add-node-22
Browse files Browse the repository at this point in the history
Updates: adds node 22 (LTS), removes node 21 (EOL)
  • Loading branch information
fabriciojs authored Oct 1, 2024
2 parents d861472 + 027101b commit d1160b9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 21/Dockerfile → 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21-alpine
FROM node:22-alpine

ENV ASUSER= \
UID=0 \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Minimal [Node](https://nodejs.org/en/) Docker image. It's use is intended for [k

- [20](https://github.com/kool-dev/docker-node/blob/master/20/Dockerfile)

### 21
### 22

- [21](https://github.com/kool-dev/docker-node/blob/master/21/Dockerfile)
- [22](https://github.com/kool-dev/docker-node/blob/master/22/Dockerfile)

### Legacy tags

Expand All @@ -26,6 +26,7 @@ The following images have been discontinued, but still exist on Hub Docker in ca
- [12](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12/Dockerfile), [12-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12-qa/Dockerfile), [12-adonis](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12-adonis/Dockerfile), [12-adonis-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12-adonis-qa/Dockerfile), [12-nest](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12-nest/Dockerfile), [12-nest-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/12-nest-qa/Dockerfile)
- [14](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14/Dockerfile), [14-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14-qa/Dockerfile), [14-adonis](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14-adonis/Dockerfile), [14-adonis-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14-adonis-qa/Dockerfile), [14-nest](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14-nest/Dockerfile), [14-nest-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/14-nest-qa/Dockerfile)
- [16](https://github.com/kool-dev/docker-node/blob/master/16/Dockerfile)
- [21](https://github.com/kool-dev/docker-node/blob/master/21/Dockerfile)

## Environment Variables

Expand All @@ -39,20 +40,20 @@ Variable | Default Value | Description
With `docker run`:

```sh
docker run -it --rm kooldev/node:20 node -v
docker run -it --rm kooldev/node:22 node -v
```

With environment variables:

```sh
docker run -it --rm -e ASUSER=500 kooldev/node:20 node -v
docker run -it --rm -e ASUSER=500 kooldev/node:22 node -v
```

With `docker-compose.yml`:

```yaml
app:
image: kooldev/node:20
image: kooldev/node:22
environment:
ASUSER: "${$UID}"
```
Expand Down
6 changes: 3 additions & 3 deletions fwd-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
]
},
{
"name": "21",
"name": "22",
"data": {
"from": "node:21-alpine",
"version": "21"
"from": "node:22-alpine",
"version": "22"
},
"files": [
{
Expand Down
4 changes: 2 additions & 2 deletions kool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ scripts:
- docker build --pull -t kooldev/node:18 18
# node 20
- docker build --pull -t kooldev/node:20 20
# node 21
- docker build --pull -t kooldev/node:21 21
# node 22
- docker build --pull -t kooldev/node:22 22

0 comments on commit d1160b9

Please sign in to comment.