-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathDockerfile
35 lines (27 loc) · 1011 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:18.04
MAINTAINER [email protected]
ENV RB_VERSION 3.0.17
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
build-essential python-dev libffi-dev libssl-dev patch \
python-pip python-setuptools python-wheel python-virtualenv \
uwsgi uwsgi-plugin-python \
postgresql-client \
python-psycopg2 python-ldap \
git-core mercurial subversion python-svn && \
rm -rf /var/lib/apt/lists/*
RUN set -ex; \
if [ "${RB_VERSION}" ]; then RB_VERSION="==${RB_VERSION}"; fi; \
python -m virtualenv --system-site-packages /opt/venv; \
. /opt/venv/bin/activate; \
pip install "ReviewBoard${RB_VERSION}" django-storages==1.1.8 oauthlib==1.0.1 semver; \
rm -rf /root/.cache
ENV PATH="/opt/venv/bin:${PATH}"
ADD start.sh /start.sh
ADD uwsgi.ini /uwsgi.ini
ADD shell.sh /shell.sh
ADD upgrade-site.py /upgrade-site.py
RUN chmod +x /start.sh /shell.sh /upgrade-site.py
VOLUME /var/www/
EXPOSE 8000
CMD /start.sh