forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (37 loc) · 998 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ARG BASEIMAGE=registry.baidubce.com/paddleopen/paddle:build-gpu-cuda10.2-cudnn8-devel-ubuntu18.04-gcc8-py38
FROM ${BASEIMAGE}
RUN git config --global user.name "PaddleCI" \
&& git config --global user.email "[email protected]"
RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
wget \
curl \
libglib2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# ci's requirements
RUN echo 'docutils\n\
scipy\n\
prettytable\n\
opencv-python==4.2.0.32\n\
markdown\n\
pre-commit\n\
pylint\n\
pytest' >requirements && \
pip3 install --no-cache-dir -i https://mirror.baidu.com/pypi/simple -r requirements && \
rm requirements
# paddle's requirements
RUN echo 'Pillow\n\
numpy\n\
gast==0.3.3\n\
protobuf\n\
urllib3\n\
certifi\n\
chardet\n\
requests\n\
tqdm\n\
scikit-learn\n\
decorator==4.4.2\n\
astor' >paddle.requirements && \
pip3 install --no-cache-dir -i https://mirror.baidu.com/pypi/simple -r paddle.requirements && \
rm paddle.requirements