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@954: # `docker run --name lada_client -v $PWD:/usr/local/apache2/htdocs/
tom@954: #             --link lada_wildfly:lada-server -p 8182:80 -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@954: 
tom@954: FROM httpd:2.4
tom@954: MAINTAINER tom.gottfried@intevation.de
tom@954: 
tom@954: RUN apt-get update -y && apt-get install -y curl unzip python
tom@954: 
tom@954: ADD . /usr/local/apache2/htdocs/
tom@954: WORKDIR /usr/local/apache2/htdocs/
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@954: RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf
tom@954: RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf
tom@954: 
tom@954: CMD ["httpd-foreground"]