view docker/prosody_e2e/Dockerfile @ 3443:1d12e7a3401d

contrat social: replaced formulation about censorship: The formulation "Nous ferons tout notre possible pour lutter contre toute tentative de censure." as been replaced by "Nous ferons tout notre possible pour lutter contre toute tentative de censure, y compris en protégeant la parole des victimes de harcèlement, discours haineux, menaces, humiliations et tout ce qui pourrait mener à de l'autocensure." This as been requested in annual general meeting of 2019-11-23
author Goffi <goffi@goffi.org>
date Sat, 05 Dec 2020 11:53:11 +0100
parents 127dde80a0a5
children
line wrap: on
line source

FROM prosody/prosody

LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"

ARG DEBIAN_FRONTEND=noninteractive

# we synchronize tls-cert group with the one in salutatoi/sat
RUN addgroup tls-cert --gid 9999 && adduser prosody tls-cert && \
    # we want third party modules
    apt-get update && apt-get install -y --no-install-recommends mercurial && \
    mkdir -p /usr/local/share/prosody && \
    hg clone https://hg.prosody.im/prosody-modules /usr/local/share/prosody/modules && \
    chown -R prosody:prosody /usr/local/share/prosody

COPY --chown=root:prosody prosody.cfg.lua /etc/prosody/prosody.cfg.lua
COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/sat/certificates/server1.test.pem
COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/sat/certificates/server1.test-key.pem

# we add exec to handle properly signals, this is missing upstream
# FIXME: to be removed when new images are generated with
#        https://github.com/prosody/prosody-docker/pull/65
RUN sed -i "s/^runuser -u prosody/exec \0/" /entrypoint.sh