-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 799 Bytes
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
FROM nlpbox/nlpbox-base:16.04
RUN apt-get update -y && apt-get upgrade -y && \
apt-get install python-pip phantomjs apache2 elinks -y && \
pip2 install cherrypy selenium
WORKDIR /var/www/html
RUN git clone https://github.com/amir-zeldes/rstWeb.git && \
mv rstWeb rstweb
ADD rstweb.apache.conf /etc/apache2/sites-available/
WORKDIR /etc/apache2/sites-enabled
RUN ln -s ../sites-available/rstweb.apache.conf . && \
rm 000-default.conf && \
a2enmod rewrite && service apache2 restart && \
a2enmod cgi && service apache2 restart && \
chown -R www-data:www-data /var/www/html/rstweb && \
chmod -R ug+rwx /var/www/html/rstweb && \
usermod -aG www-data root && \
newgrp www-data && \
service apache2 restart
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND