Skip to content

Instantly share code, notes, and snippets.

@kjdev kjdev/Dockerfile
Created Jul 25, 2016

Embed
What would you like to do?
apache-mod-brotli
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
You can’t perform that action at this time.