-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·33 lines (27 loc) · 1.29 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
FROM python:3.7.4-slim-stretch
RUN apt-get update \
&& apt-get install -y --no-install-recommends libatlas-base-dev gfortran cmake build-essential git tk \
&& echo "deb http://httpredir.debian.org/debian jessie main contrib" > /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates main contrib" >> /etc/apt/sources.list \
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \
&& apt-get update \
&& apt-get install -y --no-install-recommends ttf-mscorefonts-installer \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
ENV TZ=Europe/Paris
ENV SET_CONTAINER_TIMEZONE=true
RUN mkdir /keywords
WORKDIR /keywords
COPY ./requirements.txt ./requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY ./CHANGELOG.md ./
COPY ./keyword_app ./keyword_app
ENV API_VERSION=1.0.0
RUN python3 -m spacy download fr_core_news_sm
RUN python3 -m spacy download es_core_news_sm
RUN python3 -m spacy download en_core_web_sm
RUN python3 -m pip install joblib
RUN python3 -m nltk.downloader punkt && python3 -m nltk.downloader stopwords
CMD python3 -m keyword_app.keywords_extractor