-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 879 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 879 Bytes
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
FROM decyt/nginx-php-fpm:latest
# 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
# Add application
RUN mkdir -p /var/www/html
WORKDIR /var/www/html
COPY . /var/www/html/
RUN chmod 777 /var/www/html/storage -R
RUN composer install
RUN wget https://api.github.com/repos/MaTiUs77/lumen-auth-api/commits/master && mv master /var/www/html/public/master.json
RUN wget https://api.github.com/repos/MaTiUs77/lumen-auth-api/commits/developer && mv developer /var/www/html/public/developer.json
EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]