-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (23 loc) · 805 Bytes
/
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
FROM ubuntu:12.04
# Usage: File Author/Maintainer
MAINTAINER vlead-systems "[email protected]"
#Usage: Setting proxy environment
#ENV http_proxy "http://proxy.iiit.ac.in:8080"
#ENV https_proxy "http://proxy.iiit.ac.in:8080"
# Usage: Updating system
RUN apt-get update
# Usage: Installing dependencies for computer graphics lab
RUN apt-get install -y make php5 apache2 rsync
RUN mkdir /circular-dichronism-spectroscopy-iiith
COPY src/ /circular-dichronism-spectroscopy-iiith/src
WORKDIR ./circular-dichronism-spectroscopy-iiith/src
#Usage: Running make
RUN make
#Usage: Copying lab sources into web server path
RUN rm -rf /var/www/*
RUN cp -r ../build/* /var/www/
EXPOSE 80
EXPOSE 443
#Usage: Setting permissions in /var/www
RUN chmod -R 755 /var/www/*
CMD /usr/sbin/apache2ctl -D FOREGROUND