From 82dadc200593e39f0979159d46afccf64f1e7a83 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Sun, 2 Jun 2013 20:10:22 -0700 Subject: [PATCH] Document installation of npm dependencies /ht @grigio --- docs/sources/examples/nodejs_web_app.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/sources/examples/nodejs_web_app.rst b/docs/sources/examples/nodejs_web_app.rst index 56dab0c9aa..376dc5c286 100644 --- a/docs/sources/examples/nodejs_web_app.rst +++ b/docs/sources/examples/nodejs_web_app.rst @@ -102,6 +102,13 @@ command: # Bundle app source ADD . /src +Install your app dependencies using npm: + +.. code-block:: bash + + # Install app dependencies + RUN cd /src; npm install + Your app binds to port ``8080`` so you’ll use the ``EXPOSE`` command to have it mapped by the docker daemon: @@ -132,6 +139,9 @@ Your ``Dockerfile`` should now look like this: # Bundle app source ADD . /src + # Install app dependencies + RUN cd /src; npm install + EXPOSE 8080 CMD ["node", "/src/index.js"]