-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sumanth Kesireddy
committed
Sep 20, 2018
1 parent
dbcd0c0
commit fcc9b8e
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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 | ||
|
||
# Usage: Installing dependencies for computer graphics lab | ||
RUN apt-get install -y rsync make php5 apache2 | ||
|
||
RUN mkdir /pattern-recognition-iiith | ||
|
||
COPY src/ /pattern-recognition-iiith/src | ||
|
||
WORKDIR ./pattern-recognition-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 |