Skip to content

Commit

Permalink
Merge pull request #1 from adsferreira/adsferreira-patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
adsferreira authored Feb 8, 2024
2 parents 3200ca7 + bc99248 commit 3652136
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions Dockerfile
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

0 comments on commit 3652136

Please sign in to comment.