-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (51 loc) · 1.46 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
49
50
51
52
53
# syntax=docker/dockerfile:1
ARG BV_SYN=master
FROM matrixdotorg/synapse:${BV_SYN} as base
RUN set -ex;\
export DEBIAN_FRONTEND=noninteractive;\
mkdir -p /var/cache/apt/archives;\
touch /var/cache/apt/archives/lock;\
apt-get clean;\
apt-get update -y;\
apt-get install -y \
bash \
coreutils \
file \
libevent-2.1-7 \
libldap-2.5-0 \
libpq5 \
postgresql-client\
&& rm -rf /var/lib/apt/lists/*
FROM base as builder
RUN set -ex;\
export DEBIAN_FRONTEND=noninteractive;\
apt-get clean;\
apt-get update -y;\
apt-get install -y \
gcc \
git \
libtool \
rustc \
linux-headers-amd64 \
libevent-dev \
libffi-dev \
libgnutls28-dev \
libjpeg62-turbo-dev \
libldap2-dev \
libpq-dev\
libsasl2-dev \
libsqlite3-dev \
libwebp-dev \
libxml2-dev \
libxslt1-dev \
python3-dev \
libpython3-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --prefix=/install --upgrade supervisor
RUN python3 -m pip install --prefix=/install --upgrade python-ldap ipaddress lxml
RUN python3 -m pip install --prefix=/install git+https://github.com/ma1uta/matrix-synapse-rest-password-provider
FROM corpusops/debian-bare:buster as helpers
FROM base as runner
COPY --from=helpers /cops_helpers /usr/local/bin
COPY --from=builder /install /usr/local