我想这是一个环境问题.当我手动执行它(没有Dockerfile)时,它可以工作.
这是我的Dockerfile:
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get upgrade --assume-yes
RUN apt-get install wget vim git --assume-yes
# install RVM
RUN apt-get install build-essential curl --assume-yes
RUN curl -L https://get.rvm.io | bash -s stable
RUN echo 'source /etc/profile.d/rvm.sh' >> ~/.bashrc
RUN /usr/local/rvm/bin/rvm-shell -c "rvm requirements"
# install Ruby
RUN /usr/local/rvm/bin/rvm-shell -c "rvm autolibs enable"
RUN /usr/local/rvm/bin/rvm-shell -c "rvm install 2.1.2"
# install Rails
RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
RUN gem install rails -v 4.1.5
# install nodeJS …Run Code Online (Sandbox Code Playgroud) 我正在使用Ruby Builder(http://builder.rubyforge.org/)从数据库动态生成XML文件。
要添加名称在变量中的标签,我找到了这个:xml.tag!(@ myTagName)
如何在此Tag中动态插入à属性列表?
谢谢。