Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kool-dev/docker-node
Docker Images for Node
https://github.com/kool-dev/docker-node
adonis docker hacktoberfest kool kool-dev kooldev nestjs node
Last synced: about 2 months ago
JSON representation
Docker Images for Node
- Host: GitHub
- URL: https://github.com/kool-dev/docker-node
- Owner: kool-dev
- License: mit
- Created: 2020-07-07T20:20:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T13:25:03.000Z (10 months ago)
- Last Synced: 2024-03-11T14:49:54.518Z (10 months ago)
- Topics: adonis, docker, hacktoberfest, kool, kool-dev, kooldev, nestjs, node
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/kooldev/node
- Size: 104 KB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![CI/CD](https://github.com/kool-dev/docker-node/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/kool-dev/docker-node/actions/workflows/ci-cd.yml)
## Description
Minimal [Node](https://nodejs.org/en/) Docker image. It's use is intended for [kool.dev](https://github.com/kool-dev/kool), but can fit in any other Node use-case.
## Available Tags
### 18
- [18](https://github.com/kool-dev/docker-node/blob/master/18/Dockerfile)
### 20
- [20](https://github.com/kool-dev/docker-node/blob/master/20/Dockerfile)
### 22
- [22](https://github.com/kool-dev/docker-node/blob/master/22/Dockerfile)
### Legacy tags
The following images have been discontinued, but still exist on Hub Docker in case you need them. We strongly advise moving to the newer versions.
- [10](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10/Dockerfile), [10-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10-qa/Dockerfile), [10-adonis](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10-adonis/Dockerfile), [10-adonis-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10-adonis-qa/Dockerfile), [10-nest](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10-nest/Dockerfile), [10-nest-qa](https://github.com/kool-dev/docker-node/tree/legacy-2022-07/10-nest-qa/Dockerfile)
- [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
Variable | Default Value | Description
--- | --- | ---
**ASUSER** | `0` | Changes the user id that executes the commands
**UID** | `0` | Changes the user id that executes the commands **(ignored if ASUSER is provided)**## Usage
With `docker run`:
```sh
docker run -it --rm kooldev/node:22 node -v
```With environment variables:
```sh
docker run -it --rm -e ASUSER=500 kooldev/node:22 node -v
```With `docker-compose.yml`:
```yaml
app:
image: kooldev/node:22
environment:
ASUSER: "${$UID}"
```## Contributing
### Updating images and building locally
> You must have [`kool`](https://github.com/kool-dev/kool) installed.
This repo leverages a simple templating tool based on Laravel Blade to generate the actual building contexts for each image flavour.
You should change `fwd-template.json` and `template` folder.
After your changes, just run `kool run template` to compile the template and generate all version folder/files.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.