-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
33 lines (23 loc) · 1.14 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM decyt/nginx-php-fpm:7.2-fpm
# Configure nginx
COPY nginx-php-fpm/nginx/nginx.conf /etc/nginx/nginx.conf
# Configure PHP-FPM
COPY nginx-php-fpm/php/fpm-pool.conf /etc/php7/php-fpm.d/zzz_custom.conf
COPY nginx-php-fpm/php/php.ini /etc/php7/conf.d/zzz_custom.ini
# Configure supervisord
COPY nginx-php-fpm/supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
#RUN adduser -u 1000 -D -S -G www-data www-data
#RUN for user in $(awk -F: '{print $1}' /etc/passwd); do groups $user; done
# Crea la carpeta en www
RUN mkdir -p /var/www/html
WORKDIR /var/www/html
COPY . /var/www/html
RUN chmod 777 /var/www/html/storage -R
RUN chmod 777 /var/www/html/bootstrap -R
RUN composer install --ignore-platform-reqs
RUN wget https://api.github.com/repos/decyt-tdf/siep-lte/commits/master && mv master /var/www/html/storage/app/public/master.json
RUN wget https://api.github.com/repos/decyt-tdf/siep-lte/commits/developer && mv developer /var/www/html/storage/app/public/developer.json
# Modifica todo los permisos
RUN chown -R www-data:www-data /var/www/html
EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]