comparison Dockerfile @ 1188:5489ae5ef9e0

Migrate Dockerfile to Debian. This avoids need for custom httpd configuration and certificate problems with curl.
author Tom Gottfried <tom@intevation.de>
date Wed, 07 Sep 2016 12:57:19 +0200
parents 3ef492b5240b
children
comparison
equal deleted inserted replaced
1180:1ae5e4f0f2c8 1188:5489ae5ef9e0
10 # The linked container may be created from the Dockerfile in the lada-server 10 # The linked container may be created from the Dockerfile in the lada-server
11 # repository. 11 # repository.
12 # 12 #
13 # The LADA-application will be available under http://yourdockerhost:8182 13 # The LADA-application will be available under http://yourdockerhost:8182
14 # 14 #
15 # Add `-v $PWD:/usr/local/apache2/htdocs/' to the run-command if you want to 15 # Add `-v $PWD:/var/www/html/' to the run-command if you want to
16 # test your local changes (you'll have to run ./install-dependencies.sh again). 16 # test your local changes (you'll have to run ./install-dependencies.sh again).
17 # 17 #
18 18
19 FROM httpd:2.4 19 FROM debian:jessie
20 MAINTAINER tom.gottfried@intevation.de 20 MAINTAINER tom.gottfried@intevation.de
21 21
22 RUN apt-get update -y && apt-get install -y curl unzip python 22 RUN apt-get update -y && apt-get install -y curl unzip python apache2
23 23
24 ADD . /usr/local/apache2/htdocs/ 24 ADD . /var/www/html
25 WORKDIR /usr/local/apache2/htdocs/ 25 WORKDIR /var/www/html
26 26
27 # 27 #
28 # Install dependencies 28 # Install dependencies
29 # 29 #
30 RUN ./install-dependencies.sh 30 RUN ./install-dependencies.sh
31 31
32 # 32 #
33 # httpd setup 33 # httpd setup
34 # 34 #
35 RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf 35 RUN a2enmod proxy
36 RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf 36 RUN a2enmod proxy_http
37 RUN a2enmod headers
38 RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf
39 RUN a2enconf lada
37 40
38 EXPOSE 80 81 82 83 84 41 EXPOSE 80 81 82 83 84
39 42
40 CMD ["httpd-foreground"] 43 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

http://lada.wald.intevation.org