File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed
Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5
1818 nodejs
1919
2020# Install nginx
21- RUN apt-get install -y nginx
21+ RUN apt-get install -y nginx-full
2222
2323# Add build script
2424RUN mkdir -p /root/setup
@@ -28,6 +28,7 @@ RUN (cd /root/setup/; /root/setup/setup.sh)
2828
2929# Copy files from repo
3030ADD build/default /etc/nginx/sites-available/default
31+ ADD build/nginx.conf /etc/nginx/nginx.conf
3132
3233# Add all required files and folders, update permissions
3334ADD build/nginx.sh /etc/service/nginx/run
@@ -36,9 +37,13 @@ RUN chmod +x /etc/service/nginx/run
3637ADD build/phpfpm.sh /etc/service/phpfpm/run
3738RUN chmod +x /etc/service/phpfpm/run
3839
40+ RUN mkdir -p /var/www/public
41+ ADD build/index.php /var/www/public/index.php
42+
3943RUN chown -R www-data:www-data /var/www
4044RUN chmod -R 755 /var/www
41- RUN chown www-data:www-data -R /var/www/app/storage
45+
46+ # RUN chown www-data:www-data -R /var/www/app/storage
4247
4348EXPOSE 80
4449VOLUME /var/www
Original file line number Diff line number Diff line change 11server {
22 listen 80;
3+ #listen [::]:80 ipv6only=on default_server;
34
45 root /var/www/public/;
56 index index.html index.htm index.php;
Original file line number Diff line number Diff line change 1+ <?php phpinfo (); ?>
Original file line number Diff line number Diff line change 1+ daemon off;
2+
3+ user www-data;
4+ worker_processes 1;
5+
6+ error_log /var/log/nginx/error.log;
7+ pid /var/run/nginx.pid ;
8+
9+ events {
10+ worker_connections 1024 ;
11+ }
12+
13+ http {
14+ include /etc/nginx/mime.types ;
15+ default_type application/octet-stream ;
16+
17+ access_log /var/log/nginx/access.log;
18+
19+ sendfile on;
20+ #tcp_nopush on;
21+
22+ #keepalive_timeout 0;
23+ keepalive_timeout 65 ;
24+ tcp_nodelay on;
25+
26+ gzip on;
27+
28+ include /etc/nginx/conf.d/*.conf;
29+ include /etc/nginx/sites-enabled/*;
30+ }
You can’t perform that action at this time.
0 commit comments