# HG changeset patch # User Tom Gottfried # Date 1542381286 -3600 # Node ID 0a5765c5f40dfb7dd373274dbaaa60976f33a7bd # Parent 2f42e4579cb6c43b6a840af3251a3a72278f3543 Add Dockerfile diff -r 2f42e4579cb6 -r 0a5765c5f40d Dockerfile --- /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 , 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