tom@954: #
tom@954: # Build and run LADA-client
tom@954: #
tom@954: # Build with e.g. `docker build --force-rm=true -t koala/lada_client .'
tom@954: # Run from the repository root-dir with e.g.
tom@986: # `docker run --name lada_client
tom@1018: #             --link lada_wildfly:lada-server
tom@1041: #             -p 8180-8184:80-84 -d koala/lada_client'
tom@954: #
tom@954: # The linked container may be created from the Dockerfile in the lada-server
tom@954: # repository.
tom@954: #
tom@954: # The LADA-application will be available under http://yourdockerhost:8182
tom@954: #
tom@1188: # Add `-v $PWD:/var/www/html/' to the run-command if you want to
tom@986: # test your local changes (you'll have to run ./install-dependencies.sh again).
tom@986: #
tom@954: 
tom@1188: FROM debian:jessie
tom@954: MAINTAINER tom.gottfried@intevation.de
tom@954: 
tom@1188: RUN apt-get update -y && apt-get install -y curl unzip python apache2
tom@954: 
tom@1188: ADD . /var/www/html
tom@1188: WORKDIR /var/www/html
tom@954: 
tom@954: #
tom@954: # Install dependencies
tom@954: #
tom@954: RUN ./install-dependencies.sh
tom@954: 
tom@954: #
tom@954: # httpd setup
tom@954: #
tom@1188: RUN a2enmod proxy
tom@1188: RUN a2enmod proxy_http
tom@1188: RUN a2enmod headers
tom@1188: RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf
tom@1188: RUN a2enconf lada
tom@954: 
tom@1041: EXPOSE 80 81 82 83 84
tom@1018: 
tom@1188: CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]