Added SSHD to the image with user lamp

This commit is contained in:
Deon George
2017-12-13 21:54:20 +11:00
parent d962df104e
commit fd6c550269
3 changed files with 38 additions and 0 deletions

8
start Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -ex
[ ! -d /var/run/sshd ] && mkdir /var/run/sshd
[ -x /usr/sbin/sshd ] && start-stop-daemon --start --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd -- -p 22
echo "Starting php [$@]"
exec /usr/local/bin/docker-php-entrypoint "$@"