Dockerfile 1.3 KB
Newer Older
T
typhoonzero 已提交
1
FROM nvidia/cuda:8.0-cudnn5-runtime-ubuntu16.04
G
gongweibao 已提交
2 3 4 5 6 7 8 9 10

# you can get mirror list here:
# https://launchpad.net/ubuntu/+archivemirrors
ARG UBUNTU_MIRROR
RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ubuntu.com/ubuntu#${UBUNTU_MIRROR}#g' /etc/apt/sources.list; fi'

RUN apt-get update && apt-get install -y python python-dev python-pip iputils-ping libgtk2.0-dev
RUN pip install -U kubernetes opencv-python

T
typhoonzero 已提交
11
RUN pip install paddlepaddle
G
gongweibao 已提交
12 13
# if network is slowly, you may need to add proxy here.
# ENV https_proxy=
T
typhoonzero 已提交
14
RUN sh -c 'echo "import paddle.v2 as paddle\npaddle.dataset.cifar.train10()" | python'
T
typhoonzero 已提交
15
RUN pip uninstall -y paddlepaddle
G
gongweibao 已提交
16 17 18 19 20 21 22 23 24 25 26 27 28 29
# unset proxy if it is setted.
# ENV https_proxy=""

# NOTE: By default CI built wheel packages turn WITH_DISTRIBUTE=OFF,
#       so we must build one with distribute support to install in this image.
ADD *.whl /
RUN pip install /*.whl && rm -f /*.whl
ENV LD_LIBRARY_PATH=/usr/local/lib

# tf k8s
RUN pip install tensorflow==1.4.0
ADD tf_k8s /usr/bin
RUN chmod +x /usr/bin/tf_k8s
ADD vgg16_tf.py /workspace/
T
typhoonzero 已提交
30

T
typhoonzero 已提交
31 32 33
# below lines may change a lot for debugging
ADD https://raw.githubusercontent.com/PaddlePaddle/cloud/develop/docker/paddle_k8s /usr/bin
ADD https://raw.githubusercontent.com/PaddlePaddle/cloud/develop/docker/k8s_tools.py /root
G
gongweibao 已提交
34
RUN chmod +x /usr/bin/paddle_k8s
T
typhoonzero 已提交
35
ADD vgg16_fluid.py vgg16_v2.py /workspace/