-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
42 lines (30 loc) · 1.07 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
# Use an official Python runtime as a parent image
FROM python:2.7
ENV LANG it
ENV SPACY_VERSION 2.0.11
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
ADD https://raw.githubusercontent.com/stopwords-iso/stopwords-it/master/stopwords-it.txt stopwords-it/
########################################
# hdbscan
########################################
RUN pip install hdbscan==0.8.12
########################################
# spaCy
########################################
RUN pip install spacy==2.0.11
RUN pip install scikit-learn==0.19.1
RUN python -m spacy download ${LANG}
RUN python -m spacy download en
# Install any needed packages specified in requirements.txt
RUN pip2 install --trusted-host pypi.python.org -r requirements.txt
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable
ENV NAME World
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader stopwords
# Run app.py when the container launches
CMD ["python", "app.py"]