FROM
hub.c.163.com/public/ubuntu:16.04-toolsMAINTAINER yivanus yivanus@gmail.com
RUN mkdir -p /var/mindx/meteor && chmod 777 /var/mindx/meteor
ENV HOME /var/mindx/meteor
RUN useradd mindx
USER mindx
RUN curl -sL
https://install.meteor.com | sh
USER root
RUN cp "/var/mindx/meteor/.meteor/packages/meteor-tool/1.4.4_1/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
RUN apt-get update && apt-get install -y git
USER mindx
RUN cd /var/mindx/meteor/ && meteor create --bare /var/mindx/meteor/kityminder-meteor-demo
RUN cd /var/mindx/meteor/kityminder-meteor-demo/ && meteor remove blaze-html-templates && meteor add angular-templates && meteor npm install --save angular angular-meteor && meteor add iron:router && meteor add meteorhacks:picker && meteor add session && meteor add autopublish
USER mindx
WORKDIR /var/mindx/meteor
RUN git clone
https://github.com/yivanus/kityminder-meteor.gitWORKDIR /var/mindx/meteor/kityminder-meteor
RUN cp -r -f
README.md client collection packages.json server public /var/mindx/meteor/kityminder-meteor-demo/
WORKDIR /var/mindx/meteor/kityminder-meteor-demo/
ENV LC_ALL "C"
RUN meteor add meteorhacks:npm && meteor update meteorhacks:npm && meteor
RUN echo "cd /var/mindx/meteor/kityminder-meteor-demo/ && nohup meteor run -p 8899 &" > /var/mindx/meteor/
meteor.shRUN chmod a+x /var/mindx/meteor/
meteor.shRUN echo `cat /var/mindx/meteor/
meteor.sh`
EXPOSE 8899
CMD "/var/mindx/meteor/
meteor.sh &"
最后这个命令一直写不对。求大神。