github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/default/Dockerfile (about)

     1  FROM ubuntu:focal
     2  
     3  ENV DEBIAN_FRONTEND="noninteractive"
     4  RUN apt-get update && apt-get install -y curl gnupg2 git \
     5          python 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
    11  
    12  # Install Docker client for the website build.
    13  RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    14  RUN add-apt-repository \
    15     "deb https://download.docker.com/linux/ubuntu \
    16     $(lsb_release -cs) \
    17     stable"
    18  RUN apt-get install docker-ce-cli
    19  
    20  # Install gcloud.
    21  RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-289.0.0-linux-x86_64.tar.gz | \
    22      tar zxf - google-cloud-sdk && \
    23      google-cloud-sdk/install.sh --quiet && \
    24      ln -s /google-cloud-sdk/bin/gcloud /usr/bin/gcloud
    25  
    26  # Download the official bazel binary. The APT repository isn't used because there is not packages for arm64.
    27  RUN sh -c 'curl -o /usr/local/bin/bazel https://releases.bazel.build/4.0.0/release/bazel-4.0.0-linux-$(uname -m | sed s/aarch64/arm64/) && chmod ugo+x /usr/local/bin/bazel'
    28  WORKDIR /workspace
    29  ENTRYPOINT ["/usr/local/bin/bazel"]