blob: e6902822fa2ad0d2ae9b748abc52fb2a30ebb61d [file] [log] [blame]
# This Dockerfile is used to build the container that then builds Bazel's
# website with Jekyll.
#
# You can test it on your local machine like this:
#
# $ docker build -t bazel-jekyll .
# $ docker run -it --rm -p 8000:8000 --entrypoint /bin/bash bazel-jekyll
# $ git clone https://bazel.googlesource.com/bazel
# $ cd bazel
# $ curl -o bazel https://releases.bazel.build/0.19.0/release/bazel-0.19.0-linux-x86_64
# $ chmod +x bazel
# $ ./bazel build //site
# $ cd bazel-bin/site/site-build
# $ python -m SimpleHTTPServer
#
# Then access the website in your browser via http://localhost:8000
FROM launcher.gcr.io/google/bazel
RUN apt-get update && \
apt-get -y install ruby ruby-dev build-essential python-pygments && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY Gemfile .
RUN gem install -g --no-rdoc --no-ri && rm -f Gemfile