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.

31 lines
1.0 KiB

FROM simplesip
### DOWNLOAD PROJECT ###
RUN mkdir -p /var/www/html/
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/
RUN /bin/rm -rf media
RUN git clone -b 1.0.0 http://desenvolvimento:SimpleS_G1t34@192.168.115.83:3000/LucasCM/simples-whatsapp
RUN /bin/mv simples-whatsapp media
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
ENTRYPOINT ["scriptdb/install/docker/simplesip/init.sh"]
CMD [ "/usr/sbin/httpd", "-D", "FOREGROUND" ]