码迷,mamicode.com
首页 > 其他好文 > 详细

常用Dockerfile举例

时间:2015-11-27 19:34:32      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:

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

 

常用Dockerfile举例

标签:

原文地址:http://www.cnblogs.com/felixzh/p/5001270.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!