|
@@ -50,6 +50,22 @@ For many simple, single file projects, you may find it inconvenient to write a c
|
|
|
|
|
|
|
|
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp node:0.10 node your-daemon-or-script.js
|
|
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp node:0.10 node your-daemon-or-script.js
|
|
|
|
|
|
|
|
|
|
+# Image Variants
|
|
|
|
|
+
|
|
|
|
|
+The `node` images come in many flavors, each designed for a specific use case.
|
|
|
|
|
+
|
|
|
|
|
+## `node:<version>`
|
|
|
|
|
+
|
|
|
|
|
+This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of. This tag is based off of [`buildpack-deps`](https://registry.hub.docker.com/_/buildpack-deps/). `buildpack-deps` is designed for the average user of docker who has many images on their system. It, by design, has a large number of extremely common Debian packages. This reduces the number of packages that images that derive from it need to install, thus reducing the overall size of all images on your system.
|
|
|
|
|
+
|
|
|
|
|
+## `node:onbuild`
|
|
|
|
|
+
|
|
|
|
|
+This image makes building derivitative images easier. For most use cases, creating a `Dockerfile` in the base of your project directory with the line `FROM node:onbuild` will be enough to create a stand-alone image for your project.
|
|
|
|
|
+
|
|
|
|
|
+## `node:slim`
|
|
|
|
|
+
|
|
|
|
|
+This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to run `node`. Unless you are working in an environment where *only* the node image will be deployed and you have space constraints, we highly recommend using the default image of this repository.
|
|
|
|
|
+
|
|
|
# License
|
|
# License
|
|
|
|
|
|
|
|
View [license information](https://github.com/joyent/node/blob/master/LICENSE) for the software contained in this image.
|
|
View [license information](https://github.com/joyent/node/blob/master/LICENSE) for the software contained in this image.
|