StrongLoop, Node, and tools.
NOTE: these images are mostly a proof of concept. If you want to use StrongLoop in Docker you probably want to look at strongloop/strong-pm.
The strongloop/node image can be used interactive or as the base for other
containers.
strongloop/node comes in the following flavours:
Once you have Docker installed and the docker command working, you can pull
the image from Docker Hub:
$ docker pull strongloop/node
# .... pulling down image
Now you can spin up a temporary Linux environment with node and strongloop pre-installed:
$ docker run -it strongloop/node bash
$ slc --version
strongloop v3.1.0 (node v0.10.38)
├── [email protected]
├── [email protected] (5a43a57)
├── [email protected] (1c78f8d)
├── [email protected] (9579431)
├── [email protected] (aab3dbb)
├── [email protected] (b23e63f)
├─┬ [email protected] (cd3897a)
│ └── [email protected]
├── [email protected] (b90e9cd)
├── [email protected]
└── [email protected]
strongloop@2fc58988f424:~$ exit
exit
To use strongloop/node as the base for an image, simply specify it in your
Dockerfile using FROM strongloop/node:
FROM strongloop/node
# You start off as the 'strongloop' user.
# If a RUN command needs root, you can use sudo
# In addition to standard Linux commands you also have access to node, npm,
# and slc commands
# It is common to copy your current
ADD . /home/strongloop/app
WORKDIR /home/strongloop/app
RUN npm install
ENV NODE_ENV production
CMD [ "slc", "run", "." ]
Content type
Image
Digest
sha256:d3f6deb32…
Size
351.1 MB
Last updated
over 9 years ago
docker pull strongloop/node