File tree 2 files changed +19
-23
lines changed
2 files changed +19
-23
lines changed Original file line number Diff line number Diff line change 1
1
# docker build -f Dockerfile -t qwince/laravel5 .
2
2
FROM ubuntu:xenial
3
3
MAINTAINER Qwince <
[email protected] >
4
+
4
5
# Install packages
5
6
RUN apt-get update -y && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates supervisor git curl wget nano --no-install-recommends
6
7
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install nginx php7.0-mcrypt php7.0-mbstring php7.0-gd nginx php7.0-fpm php7.0-cli php7.0-curl php7.0-mysql --no-install-recommends
@@ -10,18 +11,15 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10
11
RUN curl -sS https://getcomposer.org/installer | php
11
12
RUN mv composer.phar /usr/local/bin/composer
12
13
13
-
14
14
# Volume
15
- VOLUME /var/www
15
+ VOLUME /var/www/webapp
16
16
17
17
ADD webapp/ /var/www/webapp
18
18
19
19
RUN chown -R www-data.www-data /var/www/*
20
-
21
- RUN chmod 755 -R /var/www/webapp/app/storage
20
+ RUN chmod 755 -R /var/www/webapp/storage
22
21
23
22
EXPOSE 80
24
- EXPOSE 443
25
23
26
24
COPY run_install_laravel.sh /usr/local/bin/run_install_laravel
27
25
Original file line number Diff line number Diff line change 1
- # http://chilion.nl/setup-a-new-webserver-with-ubuntu-nginx-mariadb-composer-and-git/
1
+
2
2
server {
3
3
listen 80 default_server ;
4
4
@@ -9,25 +9,23 @@ server {
9
9
try_files $uri $uri / /index.php?$query_string ;
10
10
}
11
11
12
+ sendfile off ;
12
13
13
- sendfile off ;
14
-
15
- client_max_body_size 200m ;
16
-
17
- location ~ \.php$ {
18
- fastcgi_split_path_info ^(.+\.php)(/.+)$ ;
19
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
20
- fastcgi_index index.php;
21
- include fastcgi_params;
22
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
23
- fastcgi_intercept_errors off ;
14
+ client_max_body_size 200m ;
24
15
25
- fastcgi_buffer_size 16k ;
26
- fastcgi_buffers 4 16k ;
27
- }
16
+ location ~ \.php$ {
17
+ fastcgi_split_path_info ^(.+\.php)(/.+)$ ;
18
+ fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
19
+ fastcgi_index index.php;
20
+ include fastcgi_params;
21
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
22
+ fastcgi_intercept_errors off ;
28
23
29
- location ~ /\.ht {
30
- deny all ;
31
- }
24
+ fastcgi_buffer_size 16k ;
25
+ fastcgi_buffers 4 16k ;
26
+ }
32
27
28
+ location ~ /\.ht {
29
+ deny all ;
30
+ }
33
31
}
You can’t perform that action at this time.
0 commit comments