github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/benchmarks/httpd/Dockerfile (about) 1 FROM ubuntu:18.04 2 3 RUN set -x \ 4 && apt-get update \ 5 && apt-get install -y \ 6 apache2 \ 7 && rm -rf /var/lib/apt/lists/* 8 9 # Generate a bunch of relevant files. 10 RUN mkdir -p /local && \ 11 for size in 1 10 100 1024 10240; do \ 12 dd if=/dev/zero of=/local/latin${size}k.txt count=${size} bs=1024; \ 13 done 14 15 # Rewrite DocumentRoot to point to /tmp/html instead of the default path. 16 RUN sed -i 's/DocumentRoot.*\/var\/www\/html$/DocumentRoot \/tmp\/html/' /etc/apache2/sites-enabled/000-default.conf 17 COPY ./apache2-tmpdir.conf /etc/apache2/sites-enabled/apache2-tmpdir.conf