Mercurial > dive4elements > website
diff Dockerfile @ 174:0a5765c5f40d
Add Dockerfile
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 16 Nov 2018 16:14:46 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dockerfile Fri Nov 16 16:14:46 2018 +0100 @@ -0,0 +1,33 @@ +FROM httpd:2.4 +LABEL authors="tom.gottfried@intevation.de" + +RUN apt-get update && apt-get install -y curl unzip + +# Allow directives in .htaccess +RUN sed -i '/include_module/s/^#//' conf/httpd.conf +# Actually only needed in <Directory "/usr/local/apache2/htdocs">, but for +# simplicity done in all places here (don't do this in real life!): +RUN sed -i '/AllowOverride/s/None/Options FileInfo/' conf/httpd.conf + +WORKDIR htdocs + +# Download JavaScript dependencies +RUN mkdir bootstrap &&\ + cd bootstrap &&\ + curl -fLO "https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip" &&\ + echo "77d72e99f947113cd55149900a736bd2c2cbec175ace6dd33c1b3d3fc51cbf81 bootstrap-3.1.1-dist.zip" |\ + sha256sum -c &&\ + unzip bootstrap-3.1.1-dist.zip &&\ + mv bootstrap-3.1.1-dist dist + +RUN mkdir jquery &&\ + curl -f https://code.jquery.com/jquery-1.11.0.min.js -o jquery/jquery.min.js &&\ + echo "b294e973896f8f874e90a8eb1a8908ac790980d034c4c4bdf0fc3d37b8abf682 jquery/jquery.min.js" |\ + sha256sum -c + +COPY *.html .htaccess ./ +COPY css ./css/ +COPY img ./img/ +COPY js ./js/ + +EXPOSE 80