Skip to content

Commit 94b9024

Browse files
author
Sumanth Kesireddy
committed
Added dockerfile
1 parent 2fc516f commit 94b9024

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM ubuntu:12.04
2+
3+
# Usage: File Author/Maintainer
4+
MAINTAINER vlead-systems "systems@vlabs.ac.in"
5+
6+
#Usage: Setting proxy environment
7+
#ENV http_proxy "http://proxy.iiit.ac.in:8080"
8+
#ENV https_proxy "http://proxy.iiit.ac.in:8080"
9+
10+
# Usage: Updating system
11+
RUN apt-get update
12+
13+
# Usage: Installing dependencies for computer graphics lab
14+
RUN apt-get install -y make php5 apache2 rsync gcc g++ libapache2-mod-python libapache2-mod-wsgi
15+
16+
RUN sed -i '/<\/VirtualHost>/i \
17+
<Directory /var/www/> \
18+
AddHandler mod_python .py \
19+
PythonHandler mod_python.publisher \
20+
PythonDebug On \
21+
</Directory> \
22+
' /etc/apache2/sites-available/default
23+
24+
RUN mkdir /problem-solving-iiith
25+
26+
COPY src/ /problem-solving-iiith/src
27+
28+
WORKDIR ./problem-solving-iiith/src
29+
30+
#Usage: Running make
31+
RUN make
32+
33+
#Usage: Copying lab sources into web server path
34+
RUN rm -rf /var/www/*
35+
RUN cp -r ../build/* /var/www/
36+
37+
EXPOSE 80
38+
EXPOSE 443
39+
40+
#Usage: Setting permissions in /var/www
41+
RUN chmod -R 755 /var/www/*
42+
43+
CMD /usr/sbin/apache2ctl -D FOREGROUND

0 commit comments

Comments
 (0)