-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
59 lines (49 loc) · 1.41 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM nvidia/cuda:9.2-cudnn7-devel-ubuntu18.04
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
vim \
nano \
tree \
tmux \
git \
curl \
autoconf \
automake \
cmake \
wget \
zip \
unzip \
libboost-python-dev \
libopenblas-dev \
libopenblas-base \
libomp-dev \
libjpeg-dev \
expect \
libtool \
pkg-config \
autotools-dev \
unixodbc-dev \
python3-pip python3-dev python3-setuptools \
python-tk \
locales \
python-opencv \
&& echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen \
&& echo 'ru_RU.UTF-8 UTF-8' >> /etc/locale.gen \
&& locale-gen \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
ENV ASYNC_TEST_TIMEOUT=10 \
# https://github.com/xianyi/OpenBLAS/wiki/faq#multi-threaded
OPENBLAS_NUM_THREADS=1 \
OMP_NUM_THREADS=1
RUN echo $PROJECT_ROOT
COPY ./requirements.txt $PROJECT_ROOT/
RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt
RUN python3 -c "import nltk; nltk.download('stopwords', quiet=True); nltk.download('wordnet', quiet=True)"
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV PYTHONPATH "${PYTHONPATH}:${PROJECT_ROOT}"
CMD ["/bin/bash"]