annotate Dockerfile @ 175:c1ef37551c31 tip

Remove static remains of former news feed and cleanup CSS
author Tom Gottfried <tom@intevation.de>
date Fri, 16 Nov 2018 16:16:37 +0100
parents 0a5765c5f40d
children
rev   line source
174
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 FROM httpd:2.4
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 LABEL authors="tom.gottfried@intevation.de"
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4 RUN apt-get update && apt-get install -y curl unzip
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 # Allow directives in .htaccess
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 RUN sed -i '/include_module/s/^#//' conf/httpd.conf
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 # Actually only needed in <Directory "/usr/local/apache2/htdocs">, but for
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 # simplicity done in all places here (don't do this in real life!):
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 RUN sed -i '/AllowOverride/s/None/Options FileInfo/' conf/httpd.conf
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 WORKDIR htdocs
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 # Download JavaScript dependencies
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 RUN mkdir bootstrap &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
16 cd bootstrap &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
17 curl -fLO "https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip" &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
18 echo "77d72e99f947113cd55149900a736bd2c2cbec175ace6dd33c1b3d3fc51cbf81 bootstrap-3.1.1-dist.zip" |\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
19 sha256sum -c &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
20 unzip bootstrap-3.1.1-dist.zip &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
21 mv bootstrap-3.1.1-dist dist
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
22
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
23 RUN mkdir jquery &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
24 curl -f https://code.jquery.com/jquery-1.11.0.min.js -o jquery/jquery.min.js &&\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
25 echo "b294e973896f8f874e90a8eb1a8908ac790980d034c4c4bdf0fc3d37b8abf682 jquery/jquery.min.js" |\
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
26 sha256sum -c
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
27
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
28 COPY *.html .htaccess ./
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
29 COPY css ./css/
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
30 COPY img ./img/
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
31 COPY js ./js/
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
32
0a5765c5f40d Add Dockerfile
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
33 EXPOSE 80
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)