Upgrade our docs building Docker container to Ubuntu 18.04.
We installed a new Jekyll library to make the inline ToC tables work. That library requires Ruby 2.4+, which is not available in the old container.
#
# Then access the website in your browser via http://localhost:8000
-FROM launcher.gcr.io/google/bazel
+FROM ubuntu:18.04
-RUN apt-get update && \
- apt-get -y install ruby ruby-dev build-essential python-pygments && \
+ENV DEBIAN_FRONTEND="noninteractive"
+RUN apt-get -qqy update && \
+ apt-get -qqy install build-essential curl liblzma-dev python-pygments ruby ruby-dev unzip zlib1g-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/*
+RUN curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64 && \
+ chown root:root /usr/local/bin/bazel && \
+ chmod 0755 /usr/local/bin/bazel
+RUN bazel version
+
COPY Gemfile .
RUN gem install -g --no-rdoc --no-ri && rm -f Gemfile
