Dockerfile 719 字节
Newer Older
T
typhoonzero 已提交
1
FROM python:2.7.14
T
typhoonzero 已提交
2 3 4 5 6 7
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
RUN pip install -U kubernetes opencv-python &&   apt-get update -y &&   apt-get install -y iputils-ping libgtk2.0-dev && \
chmod +x /usr/bin/paddle_k8s
# NOTE: By default CI built wheel packages turn WITH_DISTRIBUTE=OFF,
#       so we must build one with distribute support to install in this image.
T
typhoonzero 已提交
8 9 10
ADD *.whl /
RUN pip install /*.whl && rm -f /*.whl
ENV LD_LIBRARY_PATH=/usr/local/lib
T
typhoonzero 已提交
11
RUN sh -c 'echo "import paddle.v2 as paddle\npaddle.dataset.cifar.train10()" | python'
T
typhoonzero 已提交
12

T
typhoonzero 已提交
13
ADD vgg16_fluid.py vgg16_v2.py /workspace/