comparison Dockerfile_mini @ 1277:a152353eba26

fix build.sh and Dockerfile for minified app
author Michael Stanko <mstanko@bfs.de>
date Mon, 16 Jan 2017 14:32:41 +0100
parents
children dc5851d433e8
comparison
equal deleted inserted replaced
1273:16fd88e8c922 1277:a152353eba26
1 #
2 # Build and run LADA-client (minified version)
3 #
4 # Build with e.g. `docker build --force-rm=true -t koala/lada_client_mini .'
5 # Run from the repository root-dir with e.g.
6 # `docker run --name lada_client
7 # --link lada_wildfly:lada-server
8 # -p 8180-8184:80-84 -d koala/lada_client_mini'
9 #
10 # The linked container may be created from the Dockerfile in the lada-server
11 # repository.
12 #
13 # The LADA-application will be available under http://yourdockerhost:8182
14 #
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).
17 #
18
19 FROM debian:jessie
20 MAINTAINER mstanko@bfs.de
21
22 RUN apt-get update -y && apt-get install -y curl unzip python apache2 ruby openjdk-7-jre
23
24 #
25 # Install sencha cmd
26 #
27 RUN curl -O https://cdn.sencha.com/cmd/4.0.5.87/SenchaCmd-4.0.5.87-linux-x64.run.zip && unzip SenchaCmd-4.0.5.87-linux-x64.run.zip && chmod +x ./SenchaCmd-4.0.5.87-linux-x64.run && ./SenchaCmd-4.0.5.87-linux-x64.run --mode unattended
28 ENV PATH=~/bin/Sencha/Cmd/4.0.5.87:$PATH
29 ENV SENCHA_CMD_3_0_0="~/bin/Sencha/Cmd/4.0.5.87"
30
31 ADD . /tmp/lada-client
32 WORKDIR /tmp/lada-client
33
34 #
35 # Install dependencies
36 #
37 RUN ./install-dependencies.sh
38
39 #
40 # compile and minify application
41 #
42 ENV VERSION=2.4.1
43 RUN ./build.sh
44 RUN cd /var/www/html && cp -r /tmp/lada-client/lada-client-$VERSION/* .
45
46 #
47 # httpd setup
48 #
49 RUN a2enmod proxy
50 RUN a2enmod proxy_http
51 RUN a2enmod headers
52 RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf
53 RUN a2enconf lada
54
55 EXPOSE 80 81 82 83 84
56
57 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

http://lada.wald.intevation.org