Node.js based on linux
230
This Docker image is based on linux and includes basic tools as well as Node.js installed using NVM.
latest - the latest version of Node.js based on Ubuntu 20.10slim - the latest version of Node.js based on Debian trixie-slimTo pull the image, use the following command:
docker pull robertgontarski/node
To run a container based on the pulled image, use the following command:
docker run -it \
-p 3000:3000 \
-v $(pwd):/var/www \
robertgontarski/node
To run a container based on the pulled image using Docker Compose, create a docker-compose.yml file with the following content:
services:
node:
image: robertgontarski/node
ports:
- 3000:3000
volumes:
- .:/var/www
tty: true
Then, run the following command:
docker-compose up -d
Once the container is running, the working directory is set to /var/www. You can now work in this directory, install additional packages, run Node.js applications, etc.
The source files are available on GitHub
Content type
Image
Digest
sha256:8de3d1c66…
Size
209.1 MB
Last updated
about 2 years ago
docker pull robertgontarski/node