Files
Jing ChenandgVisor bot 16b019b78b Upgrade gVisor images to use ubuntu:jammy as the base image.
ubuntu:jammy is 22.04, which is a LTS version.

This is the third wave.

PiperOrigin-RevId: 666528422
2024-08-22 16:15:02 -07:00

18 lines
629 B
Docker

FROM ubuntu:jammy
RUN set -x \
&& apt-get update \
&& apt-get install -y \
apache2 \
&& rm -rf /var/lib/apt/lists/*
# Generate a bunch of relevant files.
RUN mkdir -p /local && \
for size in 1 10 100 1024 10240; do \
dd if=/dev/zero of=/local/latin${size}k.txt count=${size} bs=1024; \
done
# Rewrite DocumentRoot to point to /tmp/html instead of the default path.
RUN sed -i 's/DocumentRoot.*\/var\/www\/html$/DocumentRoot \/tmp\/html/' /etc/apache2/sites-enabled/000-default.conf
COPY ./apache2-tmpdir.conf /etc/apache2/sites-enabled/apache2-tmpdir.conf