mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Document installation of npm dependencies /ht @grigio
This commit is contained in:
parent
464765b940
commit
82dadc2005
1 changed files with 10 additions and 0 deletions
|
@ -102,6 +102,13 @@ command:
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
ADD . /src
|
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
|
Your app binds to port ``8080`` so you’ll use the ``EXPOSE`` command to have it
|
||||||
mapped by the docker daemon:
|
mapped by the docker daemon:
|
||||||
|
|
||||||
|
@ -132,6 +139,9 @@ Your ``Dockerfile`` should now look like this:
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
ADD . /src
|
ADD . /src
|
||||||
|
# Install app dependencies
|
||||||
|
RUN cd /src; npm install
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["node", "/src/index.js"]
|
CMD ["node", "/src/index.js"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue