forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.5 KiB
29 lines
1.5 KiB
FROM centos:7 |
|
|
|
RUN yum -y update; yum clean all |
|
RUN yum -y install systemd; yum clean all; \ |
|
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ |
|
rm -f /lib/systemd/system/multi-user.target.wants/*;\ |
|
rm -f /etc/systemd/system/*.wants/*;\ |
|
rm -f /lib/systemd/system/local-fs.target.wants/*; \ |
|
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ |
|
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ |
|
rm -f /lib/systemd/system/basic.target.wants/*;\ |
|
rm -f /lib/systemd/system/anaconda.target.wants/*; |
|
|
|
RUN adduser pbx |
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
|
RUN yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm |
|
RUN yum -y install yum-utils |
|
RUN yum-config-manager --enable remi-php56 |
|
RUN yum update -y |
|
RUN yum install php php-cli php-fpm php-mysqlnd php-zip php-devel \ |
|
php-gd php-mcrypt php-mbstring php-curl php-xml \ |
|
php-pear php-bcmath php-json php-pgsql php-pdo \ |
|
wget unzip vim git cronie mod_auth_token cronie -y |
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
|
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" |
|
RUN php composer-setup.php |
|
RUN php composer-setup.php --filename=composer --install-dir=/bin |