【发布时间】:2014-07-27 04:31:09
【问题描述】:
我已尝试以下方法将节点安装到 centos 盒子中,但在到达 ./configure 时出现错误
Step 6 : RUN tar -zxf node-v0.10.28-linux-x64.tar.gz
---> Running in ebc71472544d
---> c97289348900
Removing intermediate container ebc71472544d
Step 7 : RUN cd /node-v0.10.28-linux-x64
---> Running in 3470f862c586
---> 1771d01a5da0
Removing intermediate container 3470f862c586
Step 8 : RUN ./configure
---> Running in 16a811766136
/bin/sh: ./configure: No such file or directory
我的 Dockerfile
#Install NodeJS
RUN cd /usr/src
RUN wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz
RUN tar -zxf node-v0.10.28-linux-x64.tar.gz
RUN cd /node-v0.10.28-linux-x64
RUN ./configure
RUN make &&
RUN make install
我是否使用了使用 Dockerfile 将节点安装到 centos 的正确方法?
【问题讨论】: