https://github.com/wayofdev/docker-node
NodeJS docker images with our local development dependencies like Vercel's Turbo and pnpm.
https://github.com/wayofdev/docker-node
Last synced: 11 months ago
JSON representation
NodeJS docker images with our local development dependencies like Vercel's Turbo and pnpm.
- Host: GitHub
- URL: https://github.com/wayofdev/docker-node
- Owner: wayofdev
- License: mit
- Created: 2022-12-08T13:39:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T15:47:09.000Z (11 months ago)
- Last Synced: 2025-03-13T16:39:38.464Z (11 months ago)
- Language: Makefile
- Homepage: https://wayof.dev
- Size: 1.21 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Docker Image: NodeJs Devel
This image is used in conjunction with [wayofdev/docker-php-dev](https://github.com/wayofdev/docker-php-dev) and other WOD images to create a local development environment for our projects.
## Pre-installed Packages
- [pnpm](https://pnpm.io/) - Fast, disk space efficient package manager
- [turbo](https://github.com/vercel/turbo) - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust. Includes Turbopack and Turborepo.
- Alpine packages:
- git
- curl
- libc6-compat - [turbo dependency](https://github.com/vercel/turbo/issues/2198), starting from `^1.5.6`
If you find this repository useful, please consider giving it a star. Thank you!

## โ๏ธ Development
To install dependencies and start development, please check the contents of our `Makefile`.
### โ Requirements
To install dependencies and start development, please check the contents of our `Makefile`. You will need to have the following tools installed on your machine:
- **jq** - A lightweight and flexible command-line JSON processor. Please refer to the [official installation instructions](https://stedolan.github.io/jq/download/) to install `jq`.
- **goss** and **dgoss** - For testing purposes. Please follow the installation instructions provided in their [official README](https://github.com/aelsabbahy/goss/blob/master/extras/dgoss/README.md).
### โ Building locally
To generate distributable Dockerfiles from the YAML source code, run the following command:
```bash
$ make generate
```
To build the default image, run the following commands:
```bash
$ git clone git@github.com:wayofdev/docker-node.git && cd docker-node
$ make generate #(optional, to re-create /dist from /src)
$ make build
```
To **build** the image, **test** it, and then **clean** temporary files, run the following command:
```bash
$ make
```
To build all images, run the following commands:
```bash
$ make build IMAGE_TEMPLATE="lts-alpine"
$ make build IMAGE_TEMPLATE="19-alpine"
$ make build IMAGE_TEMPLATE="18-alpine"
```
## ๐งช Testing
To test the default image, run the following command:
```bash
$ make test
```
To test all images, run the following commands:
```bash
$ make test IMAGE_TEMPLATE="lts-alpine"
$ make test IMAGE_TEMPLATE="19-alpine"
$ make test IMAGE_TEMPLATE="18-alpine"
```
### โ Code quality tools
To validate all YAML files in the project, run the following command:
```bash
$ make lint-yaml
```
To validate the created Dockerfiles, run the following command:
```bash
$ make lint-docker
```
## ๐ค License
[](./LICENSE)
## ๐๐ผโโ๏ธ Author Information
This repository was created in **2022** by [lotyp / wayofdev](https://github.com/wayofdev).
## ๐ซก Contributors
