3381
|
1 FROM prosody/prosody |
|
2 |
|
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" |
|
4 |
|
5 ARG DEBIAN_FRONTEND=noninteractive |
|
6 |
|
7 # we synchronize tls-cert group with the one in salutatoi/sat |
|
8 RUN addgroup tls-cert --gid 9999 && adduser prosody tls-cert && \ |
|
9 # we want third party modules |
|
10 apt-get update && apt-get install -y --no-install-recommends mercurial && \ |
|
11 mkdir -p /usr/local/share/prosody && \ |
|
12 hg clone https://hg.prosody.im/prosody-modules /usr/local/share/prosody/modules && \ |
|
13 chown -R prosody:prosody /usr/local/share/prosody |
|
14 |
|
15 COPY --chown=root:prosody prosody.cfg.lua /etc/prosody/prosody.cfg.lua |
|
16 COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/sat/certificates/server1.test.pem |
|
17 COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/certificates/server1.test-key.pem |
|
18 |
|
19 # we add exec to handle properly signals, this is missing upstream |
|
20 # FIXME: to be removed when new images are generated with |
|
21 # https://github.com/prosody/prosody-docker/pull/65 |
|
22 RUN sed -i "s/^runuser -u prosody/exec \0/" /entrypoint.sh |