LINUX (Debian 9) + APACHE + MYSQL + PHP7
FROM ralf02/lamp:php7.2
MAINTAINER ralf02
RUN apt update && apt install -y supervisor
ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN echo 'root:Qwerty123' | chpasswd
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
EXPOSE 80
EXPOSE 22
CMD ["usr/bin/supervisord"]
[supervisord]
nodaemon=true
[program:mysqlx]
command=/bin/sh -c "exec /etc/init.d/mysql start"
[program:apache]
command=/bin/sh -c "exec /etc/init.d/apache2 start"
[program:ssh]
command=/bin/sh -c "exec /etc/init.d/ssh start"
[progra:php7.2x]
command=/bin/sh -c "/etc/init.d/php7.2-fpm start"
docker run -d --name lamp-dev -p 8080:80 -p 8022:22 ralf02/lamp:latest
sftp://[email protected]:8022/
Content type
Image
Digest
Size
509.7 MB
Last updated
almost 7 years ago
docker pull ralf02/lamp