Skip to content

Commit

Permalink
commit Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumanth Kesireddy committed Sep 20, 2018
1 parent 10cae98 commit 91b36bf
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Dockerfile
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 "[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 /computer-graphics-iiith

COPY src/ /computer-graphics-iiith/src

WORKDIR ./computer-graphics-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

0 comments on commit 91b36bf

Please sign in to comment.