Document installation of npm dependencies /ht @grigio

Upstream-commit: 82dadc200593e39f0979159d46afccf64f1e7a83
Component: engine
This commit is contained in:
Daniel Gasienica
2013-06-02 20:10:22 -07:00
parent a432f97e17
commit 43b70fa498
@@ -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 youll 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"]