We gonna use ubuntu:trusty
as a base.
Execute:
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 python3-dev python3-pip python3-lxml \
build-essential libffi-dev git mercurial \
libtiff5-dev libjpeg8-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev \
curl
Export environment variables:
export PYTHONUNBUFFERED=1 \
C_FORCE_ROOT="False" \
CELERYBEAT_SCHEDULE_FILENAME=/tmp/celerybeatschedule.db
Copy from the repository dir:
cp -r ['requirements.txt /tmp/requirements.txt']
Execute:
cd /tmp && pip3 install -U -r /tmp/requirements.txt
Copy from the repository dir:
cp -r ['. /opt/superdesk']
Working directory is: /opt/superdesk/
To start the application execute:
honcho start
Following ports will be used by the application:
5000, 5100