Skip to content

Instantly share code, notes, and snippets.

@rcanavan
rcanavan / Dockerfile
Created February 9, 2018 12:13
Dockerfile to demonstrate mod_brotli heap fragmentation issues on CentOS
FROM centos:7
# ensure www-data user exists
RUN set -x \
&& groupadd www-data \
&& useradd -u 82 -g www-data www-data
# 82 is the standard uid/gid for "www-data" in Alpine
# http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2
# http://git.alpinelinux.org/cgit/aports/tree/main/lighttpd/lighttpd.pre-install?h=v3.3.2
# http://git.alpinelinux.org/cgit/aports/tree/main/nginx-initscripts/nginx-initscripts.pre-install?h=v3.3.2