forked from vivekkalyanarangan30/Text-Clustering-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from adsferreira/adsferreira-patch-1
Update Dockerfile
- Loading branch information
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
FROM continuumio/anaconda:4.4.0 | ||
MAINTAINER Vivek Kalyanarangan, https://machinelearningblogs.com/about/ | ||
COPY python/ /usr/local/python/ | ||
EXPOSE 8180 | ||
WORKDIR /usr/local/python/ | ||
RUN pip install -r requirements.txt \ | ||
&& python -m nltk.downloader averaged_perceptron_tagger | ||
CMD python CLAAS_public.py | ||
FROM continuumio/anaconda3 | ||
MAINTAINER adsferreira | ||
EXPOSE 8000 | ||
WORKDIR /var/www/text_clustering_api/ | ||
COPY . /var/www/text_clustering_api/ | ||
WORKDIR /var/www/text_clustering_api/ | ||
RUN apt-get update && apt-get install -y apache2 \ | ||
apache2-dev \ | ||
vim \ | ||
&& apt-get clean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip install -r requirements.txt \ | ||
&& /opt/conda/bin/mod_wsgi-express install-module \ | ||
&& mod_wsgi-express setup-server text_clustering_api.wsgi --port=8000 \ | ||
--user www-data --group www-data \ | ||
--server-root=/etc/mod_wsgi-express-80 | ||
CMD /etc/mod_wsgi-express-80/apachectl start -D FOREGROUND |