Dockerfile 827 字节
Newer Older
T
typhoonzero 已提交
1
FROM python:2.7.14
T
typhoonzero 已提交
2
RUN pip install -U kubernetes opencv-python &&   apt-get update -y &&   apt-get install -y iputils-ping libgtk2.0-dev
T
typhoonzero 已提交
3 4
# 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 已提交
5
RUN pip install paddlepaddle
T
typhoonzero 已提交
6
RUN sh -c 'echo "import paddle.v2 as paddle\npaddle.dataset.cifar.train10()" | python'
T
typhoonzero 已提交
7
RUN pip uninstall -y paddlepaddle
T
typhoonzero 已提交
8

T
typhoonzero 已提交
9 10 11 12 13 14 15
# 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
ADD *.whl /
RUN pip install /*.whl && rm -f /*.whl && \
chmod +x /usr/bin/paddle_k8s
ENV LD_LIBRARY_PATH=/usr/local/lib
T
typhoonzero 已提交
16
ADD vgg16_fluid.py vgg16_v2.py /workspace/