reviewboard/Dockerfile
2021-04-30 14:09:46 +02:00

35 lines
982 B
Docker

FROM debian:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/reviewboard"
LABEL AlternativeImageName="wollud1969/reviewboard"
LABEL Repository="https://home.hottis.de/gitlab/dockerized/reviewboard"
ENV DBHOST "mariadb"
ENV DBNAME "reviewboard"
ENV DBUSER "reviewboard"
ENV DBPASS "geheim"
ENV ADMINPASS "geheim"
ENV SITEROOT "/"
ARG RB_VERSION
RUN \
apt update && \
apt install -y python3 curl build-essential python3-dev libffi-dev libssl-dev patch libmariadbclient-dev cvs git-core subversion apache2 libapache2-mod-wsgi liboauth0 liboauth-dev python3-oauth python3-ldap python3-subvertpy python3-pip && \
pip3 install -U pip setuptools && \
pip3 install -U mysqlclient && \
pip3 install -U mercurial && \
pip3 install ReviewBoard${RB_VERSION} django-storages==1.1.8 oauthlib==1.0.1
COPY start.sh /usr/local/sbin/
EXPOSE 80
VOLUME /usr/local/share/ca-certificates/
CMD /usr/local/sbin/start.sh