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

T
typhoonzero 已提交
11 12 13 14 15 16 17
# 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 已提交
18
ADD vgg16_fluid.py vgg16_v2.py /workspace/