blob: ed60904ba71f4ceb8ba5c6b14fd9311d26ccae2f [file] [log] [blame]
# Dockerfile for building the Cassandra documentation.
# If wanting to regenerate the documentation from scratch,
# run `ant realclean` from the root directory of this project.
FROM python:2.7
WORKDIR /usr/src/code
RUN pip install --no-cache-dir sphinx sphinx_rtd_theme
RUN apt-get update && apt-get install -y software-properties-common
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - \
&& add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ \
&& apt-get update \
&& apt-get install -y adoptopenjdk-11-hotspot ant
RUN apt-get clean
CMD CASSANDRA_USE_JDK11=true ant realclean gen-doc \
&& echo "The locally built documentation can be found here:\n\n build/html/index.html\n\n"