-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.no_fold
43 lines (34 loc) · 1.28 KB
/
Dockerfile.no_fold
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
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
gosu \
python-dev \
python-pip \
unixodbc \
unixodbc-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --upgrade pip \
&& pip install --no-cache-dir setuptools
RUN pip install --no-cache-dir spacy && python -m spacy download en_core_web_md && python -m spacy link en_core_web_md en
ARG PROJECT_ROOT=/root/recursive-embedding
RUN mkdir "$PROJECT_ROOT"
RUN chmod 777 /root
COPY docker/set-user-with-folder.sh /root/set-user-with-folder.sh
RUN chmod +x /root/set-user-with-folder.sh
########################################################################################################################
ARG OWN_LOCATION=docker/tools/visualize
# install graphiz (used by pydot)
RUN apt-get update \
&& apt-get install -y --no-install-recommends graphviz \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY "$OWN_LOCATION"/requirements.txt "$PROJECT_ROOT"/requirements.txt
RUN pip install --no-cache-dir 'tensorflow==1.3' \
&& pip install --no-cache-dir -r "$PROJECT_ROOT"/requirements.txt
COPY src "$PROJECT_ROOT"/src
WORKDIR "$PROJECT_ROOT"/src
#CMD bash