# This Dockerfile uses the latest version of the Bitnami PHP-FPM Docker image
#FROM bitnami/php-fpm:latest
FROM webdevops/php-apache:latest

# Copy app's source code to the /app directory
#COPY app-code /app
COPY app-code/nube /app
COPY app-code/nube_bkp/App/config/config_db/data_base.ini  /app/App/config/config_db/data_base.ini
# COPY app-code/nube_bkp/Core/Config.php /app/Core/Config.php
COPY app-code/nube/App/sourceskube/config/kubeconfig-tkg3_original  /app/App/sourceskube/config/kubeconfig-tkg3

# Copy config php
#COPY app-code/php/php.ini /opt/bitnami/php/etc/
#COPY php/php_fpm.ini /etc/php/7.2/fpm/php.ini
#COPY php/php.ini /etc/php/7.2/cli/php.ini
COPY php/php.webdevops.ini /opt/docker/etc/php 

# COPY monitor.cron /etc/cron.d/monitor.cron
# RUN chmod 0644 /etc/cron.d/monitor.cron
# RUN crontab /etc/cron.d/monitor.cron

# The application's directory will be the working directory
WORKDIR /app
#RUN curl "http://localhost/servicesdeploy/installrepo/?secret=946d6b24840b1dc8454779b5f934f366fc5b34c3&plugin=1"

EXPOSE 80

RUN chmod -Rv 777 /app/public/
RUN chmod -Rv 777 /app/App/logs/
