diff --git a/Dockerfile b/Dockerfile index c8e7e46..719f0fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,8 @@ RUN dpkg -i /tmp/prosody.deb \ && sed -i '1s/^/daemonize = false;\n/' /etc/prosody/prosody.cfg.lua \ && perl -i -pe 'BEGIN{undef $/;} s/^log = {.*?^}$/log = {\n {levels = {min = "info"}, to = "console"};\n}/smg' /etc/prosody/prosody.cfg.lua +RUN mkdir -p /var/run/prosody && chown prosody:prosody /var/run/prosody + COPY ./entrypoint.sh /entrypoint.sh RUN chmod 755 /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]