Prosody is not running in docker

I tried to make a dockerfile to install and configure prosody, here is the dockerfile:

base image

FROM jitsi/base

RUN sed -i – ‘s/#deb-src/deb-src/g’ /etc/apt/sources.list && sed -i – ‘s/# deb-src/deb-src/g’ /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y prosody
RUN ls /var/log/prosody
ADD jitsi.pangu.com.cfg.lua /etc/prosody/conf.d/
RUN sed -i ‘$a\component_ports={ 5347 }’ /etc/prosody/prosody.cfg.lua
RUN sed -i ‘$a\component_interface = “0.0.0.0”’ /etc/prosody/prosody.cfg.lua
RUN prosodyctl cert generate *******
RUN prosodyctl cert generate *******
RUN ln -sf /var/lib/prosody/auth.jitsi.pangu.com.crt /usr/local/share/ca-certificates/auth.jitsi.pangu.com.crt
RUN update-ca-certificates -f
RUN prosodyctl register focus auth.jitsi.pangu.com passssswd
#RUN prosodyctl restart

EXPOSE 5222
EXPOSE 5269
EXPOSE 5347
EXPOSE 5080

When I tried to check prosody status, it always return that prosody is not running and no prosody.log generated under /var/log/prosody folder. How could I debug the issue in this situation?

Resolved.
This is because prosody is not allowed to started by policy distriction in docker image.

Add below in Dockerfile:
RUN echo “#!/bin/sh\nexit 0” > /usr/sbin/policy-rc.d