-
Notifications
You must be signed in to change notification settings - Fork 324
/
Dockerfile
36 lines (24 loc) · 868 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
# Usage: Pulling Ubuntu-16.04
FROM ubuntu:16.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 system operations
RUN apt-get install -y git sudo net-tools wget apache2 make rsync
RUN mkdir computer-programming-responsive-iiith
COPY src/ /computer-programming-responsive-iiith/src
WORKDIR ./computer-programming-responsive-iiith/src
# Usage: Running make
RUN make
# Usage: Copying lab sources into web server path
RUN rm -rf /var/www/html/*
RUN rsync -a ../build/ /var/www/html/
EXPOSE 80
EXPOSE 443
# Usage: Setting permissions in /var/www
RUN chmod -R 755 /var/www/html/*
CMD /usr/sbin/apache2ctl -D FOREGROUND