blob: 617883e0c9f4c97bbf154859a8369e1f52b7dd27 [file] [log] [blame]
FROM mesos/mesos-build:ubuntu-16.04
MAINTAINER "dev@mesos.apache.org"
LABEL Description="This image is used for generating Mesos web site."
# Set the root user explicitly because the base image
# `mesos/mesos-build` uses `mesos` user by default. Also, note that
# `root` inside the container is mapped to `jenkins` user on the build
# machine host in ASF CI.
USER root
# Install dependencies.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
doxygen \
locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install ruby version manager to get a more updated ruby version
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \
curl -k -sSL https://get.rvm.io | bash -s stable --ruby=2.6.6
ENV PATH=/usr/local/rvm/rubies/ruby-2.6.6/bin:$PATH
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV CC gcc
ENV CXX g++
WORKDIR /mesos
CMD bash support/mesos-website/entrypoint.sh