To run multiple processes e.g. an Apache web server together with an SSH daemon inside the same container you can use supervisord.
Create your supervisord.conf configuration file like:
[supervisord]
nodaemon=true
[program:sshd]
command=/usr/sbin/sshd -D
[program:apache2]
command=/bin/bash...