_____ _ __ __ _____
|_ _| |/__\ __ / _]_ _|
| | | | \/ |__| [/\ | |
|_| |_|\__/ \__/ |_|
NodeJS based image.
This image has installed the follow software:
The current version of this image is tiogt/node:1.2.0.
The most simple way to try this image is run a simple interactive container.
docker run --rm -it tiogt/node:1.2.0
By default the WORKDIR is defined in the /app folder. And the nobody user is the owner, so you don't need run with privilegies this container.
Insede the containter you can try commons commands like as:
~ $ pwd
/app
~ $ npm -v
6.1.0
~ $ node -v
v10.7.0
~ $
In other words you can create a new project inside this container and install dependencies.
When we work with a front end project is very common that we use tools like a webpack, eslint or wherever based on javascript/nodejs tool.
So we can share our folder with the front end project and run any task of node/npm.
By example if we has a front end project on the path $HOME/my-app, we can run the follow command to install the dependencies:
docker run -v ~/my-app:/app --rm tiogt/node:1.2.0 npm install
Or if you need add a new dependency you can execute:
docker run -v ~/my-app:/app --rm tiogt/node:1.2.0 npm install --save isjs
If you want reuse this image you can extend in a new Dockerfile as a follow:
FROM tiogt/node:1.2.0
With docker when you mount a volume like a bind mode if the source folder doesn't exist, docker will create this folder but is you are using GNU/Linux based system the new folder will created with the roots user so we don't have access to this folder inside the container.
You can give us your opinion by sending us a email to the [email protected].
Content type
Image
Digest
Size
26.3 MB
Last updated
over 6 years ago
docker pull tiogt/node:12.16.3