content: FROM ubuntu:bionic
  RUN apt-get update && \
      apt-get install --no-install-recommends -y ca-certificates && \
      apt-get clean && \
      find /var/lib/apt/lists -delete
  
  RUN . /etc/os-release && \
      apt-get update && \
      apt-get install --no-install-recommends -y gnupg && \
      apt-key adv --fetch-keys \
          https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg && \
      apt-get autoremove --purge -y gnupg && \
      apt-get clean && \
      find /var/lib/apt/lists -delete
  
  RUN . /etc/os-release && \
      echo "deb https://storage.googleapis.com/bazel-apt stable jdk1.8" >> /etc/apt/sources.list
  
  RUN . /etc/os-release && \
      apt-get update && \
      apt-get install --no-install-recommends -y \
          automake \
          bazel \
          make \
          patch \
          python \
          git \
          libtbb2 \
          libtool \
          python3-setuptools \
          python3-wheel \
          python3.6-dev \
          python3-six \
          python3-pip \
          protobuf-compiler && \
      apt-get clean && \
      find /var/lib/apt/lists -delete
  
  RUN useradd -m john
  
  USER john
  
  WORKDIR /home/john
  
  RUN bazel version
  
  