tom@174: FROM httpd:2.4 tom@174: LABEL authors="tom.gottfried@intevation.de" tom@174: tom@174: RUN apt-get update && apt-get install -y curl unzip tom@174: tom@174: # Allow directives in .htaccess tom@174: RUN sed -i '/include_module/s/^#//' conf/httpd.conf tom@174: # Actually only needed in , but for tom@174: # simplicity done in all places here (don't do this in real life!): tom@174: RUN sed -i '/AllowOverride/s/None/Options FileInfo/' conf/httpd.conf tom@174: tom@174: WORKDIR htdocs tom@174: tom@174: # Download JavaScript dependencies tom@174: RUN mkdir bootstrap &&\ tom@174: cd bootstrap &&\ tom@174: curl -fLO "https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip" &&\ tom@174: echo "77d72e99f947113cd55149900a736bd2c2cbec175ace6dd33c1b3d3fc51cbf81 bootstrap-3.1.1-dist.zip" |\ tom@174: sha256sum -c &&\ tom@174: unzip bootstrap-3.1.1-dist.zip &&\ tom@174: mv bootstrap-3.1.1-dist dist tom@174: tom@174: RUN mkdir jquery &&\ tom@174: curl -f https://code.jquery.com/jquery-1.11.0.min.js -o jquery/jquery.min.js &&\ tom@174: echo "b294e973896f8f874e90a8eb1a8908ac790980d034c4c4bdf0fc3d37b8abf682 jquery/jquery.min.js" |\ tom@174: sha256sum -c tom@174: tom@174: COPY *.html .htaccess ./ tom@174: COPY css ./css/ tom@174: COPY img ./img/ tom@174: COPY js ./js/ tom@174: tom@174: EXPOSE 80