-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (41 loc) · 1.25 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
##
# Wiresafe deployment of sydent - so we can customize the invite / email workflow
# todo:
# - copy changes from res/ to get customized email messages
# - configure email (smtp) service
##
FROM python:2.7-jessie
ARG username="matrix-sydent"
ARG password="${username}"
# install requirements per https://github.com/matrix-org/synapse#id11
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt-get clean && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
python2.7-dev \
libffi-dev \
python-pip \
python-setuptools \
sqlite3 \
libssl-dev \
python-virtualenv \
libjpeg-dev \
libxslt1-dev && \
pip install --upgrade pip && \
pip freeze > requirements.txt && \
pip install --upgrade -r requirements.txt && \
rm requirements.txt
# install sydent and run setup.py
RUN pip install --upgrade https://github.com/matrix-org/sydent/tarball/master
# install matrix root user
RUN useradd -rm -g root matrix-sydent
# when running as user I'm getting db access errors - running as root for now
# USER "${username}"
VOLUME ["/home/${username}/config"]
WORKDIR "/home/${username}/config"
EXPOSE 8090
# I'm not sure if the --server-name can be set this way
CMD python -B -m sydent.sydent --server-name=id.wiresafe.com