use supervisord

This commit is contained in:
busti 2021-02-05 07:11:25 +01:00
parent 10bb767480
commit 1d2fa96a67
5 changed files with 43 additions and 10 deletions

View file

@ -11,6 +11,7 @@ RUN apt-get update && apt install -y --no-install-recommends \
libpam-sss \
libpam-modules \
gettext \
supervisor \
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
@ -34,8 +35,8 @@ COPY nsswitch.conf /etc/nsswitch.conf
COPY common-session /etc/pam.d/common-session
COPY skel /etc/skel
COPY startup.sh /root/startup.sh
COPY supervisord.conf /etc/supervisord.conf
COPY sssd.sv.conf /etc/supervisor/conf.d/sssd.sv.conf
COPY sshd.sv.conf /etc/supervisor/conf.d/sshd.sv.conf
VOLUME /home
CMD ["/bin/bash", "/root/startup.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]