forked from CreateAmrita/mechanics-virtual-lab-pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (24 loc) · 787 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
36
37
38
39
40
41
FROM ubuntu:12.04
# Usage: File Author/Maintainer
MAINTAINER vlead-systems "systems@vlabs.ac.in"
#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
# Pre-build
# Usage: Installing dependencies for mechanics-virtual-lab-pilot
RUN apt-get install -y make rsync apache2 wget php5
RUN mkdir /mechanics-virtual-lab-pilot
COPY src/ /mechanics-virtual-lab-pilot/src
WORKDIR ./mechanics-virtual-lab-pilot/src
#Usage: Running make
RUN make
RUN mv /var/www/index.html index.html.default
RUN cp -r ../build/* /var/www/
# Post-build
EXPOSE 80
EXPOSE 443
#Usage: Setting permissions in /var/www
RUN chmod -R 755 /var/www/*
CMD /usr/sbin/apache2ctl -D FOREGROUND