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.
44 lines
1.7 KiB
44 lines
1.7 KiB
2 years ago
|
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 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 adduser pbx
|
||
|
|
||
|
WORKDIR /var/www/html/
|
||
|
|
||
|
### DOWNLOAD PROJECT ###
|
||
|
RUN git clone http://desenvolvimento:SimpleS_G1t34@192.168.115.83:3000/awade/aplicativo.git
|
||
|
|
||
|
## CONFIGURANDO AMBIENTE WEB ##
|
||
|
WORKDIR /var/www/html/aplicativo
|
||
|
|
||
|
RUN chmod 755 /var/www/html/aplicativo/scriptdb/install/docker/simplesip/sip_install.sh
|
||
|
RUN chmod 755 /var/www/html/aplicativo/scriptdb/install/docker/simplesip/init.sh
|
||
|
RUN sh scriptdb/install/docker/simplesip/sip_install.sh
|
||
|
RUN systemctl enable supervisor
|
||
|
RUN systemctl enable httpd
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
ENTRYPOINT [ "/usr/sbin/init" ]
|
||
|
|
||
|
CMD [ "/usr/sbin/httpd", "-D", "FOREGROUND" ]
|