Browse code

Document installation of npm dependencies /ht @grigio

Daniel Gasienica authored on 2013/06/03 12:10:22
Showing 1 changed files
... ...
@@ -102,6 +102,13 @@ command:
102 102
     # Bundle app source
103 103
     ADD . /src
104 104
 
105
+Install your app dependencies using npm:
106
+
107
+.. code-block:: bash
108
+
109
+    # Install app dependencies
110
+    RUN cd /src; npm install
111
+
105 112
 Your app binds to port ``8080`` so you’ll use the ``EXPOSE`` command to have it
106 113
 mapped by the docker daemon:
107 114
 
... ...
@@ -132,6 +139,9 @@ Your ``Dockerfile`` should now look like this:
132 132
 
133 133
     # Bundle app source
134 134
     ADD . /src
135
+    # Install app dependencies
136
+    RUN cd /src; npm install
137
+
135 138
     EXPOSE  8080
136 139
     CMD ["node", "/src/index.js"]
137 140