-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-src
55 lines (49 loc) · 1.14 KB
/
Dockerfile-src
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
49
50
51
52
53
54
55
## source: https://github.com/styyle14/docker-sydent
FROM ubuntu:latest
ARG username="sydent"
ARG password="${username}"
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 \
wget && \
pip install --upgrade pip && \
pip freeze > requirements.txt && \
pip install --upgrade -r requirements.txt && \
rm requirements.txt
RUN \
wget 'https://github.com/matrix-org/sydent/archive/master.tar.gz' && \
tar -xzvf master.tar.gz && \
rm -r master.tar.gz && \
pip install --upgrade ./sydent-master/ && \
rm -r sydent-master/
RUN \
apt-get remove -y \
build-essential \
wget && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/* /var/cache/apt/*
RUN \
useradd \
--create-home \
--groups \
sudo \
"${username}" && \
echo "${username}:${password}" | chpasswd
USER "${username}"
VOLUME ["/home/${username}/config"]
WORKDIR "/home/${username}/config"
EXPOSE 8090
CMD python -B -m sydent.sydent