comparison Dockerfile @ 174:0a5765c5f40d

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