grim/containers/reviewboard

e1aaae52c85e
Add everything so we can install ReviewBoard[saml]
FROM docker.io/beanbag/reviewboard:5.0rc1 AS app
COPY tzdata.selections /
# Setup the time selections
RUN set -ex && \
debconf-set-selections -v /tzdata.selections && \
ln -nsf /usr/share/zoneinfo/Etc/UTC /etc/localtime
# Install dependencies for ReviewBoard[saml]
RUN set -ex && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential pkg-config libxml2-dev libxmlsec1-dev libpython3-dev \
&& \
apt-get autoremove --purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists
# install rbjbhub and ReviewBoard[saml]
RUN set -ex && \
pip install --no-cache rbjbhub ReviewBoard[saml]
FROM docker.io/nginx:1.21 AS nginx
COPY --from=app /venv/lib/python3.8/site-packages/reviewboard/htdocs /var/www/reviewboard/htdocs/
RUN set -ex && \
sed -i -s 's/101/1001/g' /etc/passwd && \
sed -i -s 's/101/1001/g' /etc/group