常用Dockerfile举例
FROM ubuntu:14.04 MAINTAINER sss ENV JAVA_HOME /opt/jdk RUN \ echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /root/.bashrc ADD jdk /opt/jdk
FROM ubuntu:python MAINTAINER yuncun RUN apt-get update RUN \ apt-get install -y python-pip && \ apt-get install -y python-numpy && \ apt-get install -y python-scipy && \ pip install -U scikit-learn apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM ubuntu:14.04 MAINTAINER yuncun ENV PYTHONPATH /usr/bin/python # Install python RUN \ apt-get install -y python && \ echo 'export PATH=$PYTHONPATH:$PATH' >> /root/.bashrc
欢迎关注微信公众号:大数据从业者