Created
July 25, 2016 00:53
-
-
Save kjdev/daf0e04c073daafd373b92b2ceff8978 to your computer and use it in GitHub Desktop.
apache-mod-brotli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fedora:24 | |
MAINTAINER kjdev <kjclev@gmail.com> | |
RUN dnf -y --setopt=deltarpm=false update \ | |
&& dnf -y --setopt=deltarpm=false install mod_ssl httpd-devel gcc-c++ make automake autoconf libtool file \ | |
&& dnf clean all \ | |
&& rm -f /etc/httpd/conf.d/{welcome.conf,userdir.conf} \ | |
&& rm -f /etc/httpd/conf.modules.d/{00-dav.conf,00-lua.conf,00-proxy.conf,01-cgi.conf} \ | |
&& sed -i 's|#ServerName www.example.com:80|ServerName localhost:80|g' /etc/httpd/conf/httpd.conf \ | |
&& sed -i 's|ErrorLog ".*"|ErrorLog /dev/stdout|g' /etc/httpd/conf/httpd.conf \ | |
&& sed -i 's|CustomLog|#CustomLog|g' /etc/httpd/conf/httpd.conf | |
EXPOSE 80 | |
EXPOSE 443 | |
ENTRYPOINT [ "/usr/sbin/httpd" ] | |
CMD [ "-D", "FOREGROUND" ] | |
ENV APP /app | |
RUN echo 'Include ${APP}/conf/*.conf' > /etc/httpd/conf.d/app.conf | |
ADD . /app/src/apache-mod-brotli | |
RUN cd /app/src/apache-mod-brotli \ | |
&& ./autogen.sh \ | |
&& ./configure \ | |
&& make \ | |
&& install -p -m 755 -D .libs/mod_brotli.so /etc/httpd/modules/mod_brotli.so \ | |
&& make distclean \ | |
&& ./autogen.sh clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment