forked from d2l-ai/d2l-vi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 912 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
FROM ubuntu:latest
MAINTAINER fnndsc "vuhuutiep@gmail.com"
RUN apt-get update \
&& apt-get -y install software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get install -y python3.7 \
&& apt-get install -y git \
&& apt-get install -y curl \
&& apt-get install -y zip
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3.7 get-pip.py
RUN mkdir d2l
WORKDIR /d2l
# libgomp1 to fix this error https://github.com/explosion/spaCy/issues/1110
RUN apt-get install -y pandoc libgomp1
# clone and build d2l-book, changing D2L_VER will break the cache here
ARG D2L_VER=unknown
RUN pip3 install git+https://github.com/aivivn/d2l-book
RUN pip3 install --no-cache-dir mxnet==1.6.0b20191122 git+https://github.com/d2l-ai/d2l-en
CMD ["d2lbook", "build", "all"]
# && apt-get install -y wget \
# && apt-get install -y unzip \
# && apt-get install -y fontconfig