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.

32 lines
1.2 KiB

2 years ago
FROM simplesip
### DOWNLOAD PROJECT ###
RUN yum install -y supervisor
RUN mkdir -p /var/www/html/ /var/log/supervisor
COPY supervisord.conf /etc/supervisor/supervisord.conf
2 years ago
WORKDIR /var/www/html/
RUN git clone http://desenvolvimento:SimpleS_G1t34@192.168.115.83:3000/awade/aplicativo.git
## CONFIGURANDO AMBIENTE WEB ##
WORKDIR /var/www/html/aplicativo/integracao/
2 years ago
RUN /bin/rm -rf media
RUN git config --global user.email "desenvolvimento@simplesip.com.br"
RUN git config --global user.name "Desenvolvimento"
RUN git clone http://desenvolvimento:SimpleS_G1t34@192.168.115.83:3000/LucasCM/simples-whatsapp media
2 years ago
WORKDIR /var/www/html/aplicativo/integracao/media
RUN php /bin/composer install
WORKDIR /var/www/html/aplicativo
RUN /bin/cp -Rap asterisk/var_lib_asterisk/scripts/supervisor/supervisor.service /etc/systemd/system/
RUN chmod 755 /etc/systemd/system/supervisor.service
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
EXPOSE 80
CMD supervisord -n -c /etc/supervisor/supervisord.conf
#CMD [ "/usr/sbin/httpd", "-D", "FOREGROUND" ]