gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/images/default/Dockerfile (about)

     1  FROM ubuntu:22.04
     2  
     3  ENV DEBIAN_FRONTEND="noninteractive"
     4  RUN apt-get update && apt-get install -y curl gnupg2 git \
     5          python-is-python3 python3 python3-distutils python3-pip \
     6          build-essential crossbuild-essential-arm64 qemu-user-static \
     7          openjdk-11-jdk-headless zip unzip \
     8          apt-transport-https ca-certificates gnupg-agent \
     9          software-properties-common \
    10          pkg-config libffi-dev patch diffutils libssl-dev iptables kmod \
    11          clang crossbuild-essential-amd64 erofs-utils busybox-static libbpf-dev
    12  
    13  # This package is needed to build eBPF on amd64, but not on arm64 where it
    14  # doesn't exist.
    15  RUN test "$(uname -m)" != x86_64 && exit 0 || apt-get install -y libc6-dev-i386
    16  
    17  # Install Docker client for the website build.
    18  RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    19  RUN add-apt-repository \
    20     "deb https://download.docker.com/linux/ubuntu \
    21     $(lsb_release -cs) \
    22     stable"
    23  RUN apt-get -y install docker-ce-cli
    24  
    25  # Install gcloud.
    26  RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-410.0.0-linux-x86_64.tar.gz | \
    27      tar zxf - google-cloud-sdk && \
    28      google-cloud-sdk/install.sh --quiet && \
    29      ln -s /google-cloud-sdk/bin/gcloud /usr/bin/gcloud
    30  
    31  # Download the official bazel binary. The APT repository isn't used because there is not packages for arm64.
    32  RUN sh -c 'curl -o /usr/local/bin/bazel https://releases.bazel.build/7.1.2/release/bazel-7.1.2-linux-$(uname -m | sed s/aarch64/arm64/) && chmod ugo+x /usr/local/bin/bazel'
    33  WORKDIR /workspace
    34  ENTRYPOINT ["/usr/local/bin/bazel"]