mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Don't force a non-existent npm version, use latest from epel
Not the smartest thing to do
This commit is contained in:
parent
c864647721
commit
843ef645d2
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ To install the right package for CentOS, we’ll use the instructions from the
|
||||||
# Enable EPEL for Node.js
|
# Enable EPEL for Node.js
|
||||||
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
||||||
# Install Node.js and npm
|
# Install Node.js and npm
|
||||||
RUN yum install -y npm-1.2.17-5.el6
|
RUN yum install -y npm
|
||||||
|
|
||||||
To bundle your app’s source code inside the docker image, use the ``ADD``
|
To bundle your app’s source code inside the docker image, use the ``ADD``
|
||||||
command:
|
command:
|
||||||
|
@ -137,7 +137,7 @@ Your ``Dockerfile`` should now look like this:
|
||||||
# Enable EPEL for Node.js
|
# Enable EPEL for Node.js
|
||||||
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
||||||
# Install Node.js and npm
|
# Install Node.js and npm
|
||||||
RUN yum install -y npm-1.2.17-5.el6
|
RUN yum install -y npm
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
ADD . /src
|
ADD . /src
|
||||||
|
|
Loading…
Add table
Reference in a new issue