File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11FROM nginx:stable-alpine
22
3- RUN addgroup -S 1000 && adduser -S 1000 -G 1000
4-
53ADD ./nginx/nginx.conf /etc/nginx/nginx.conf
6- ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf
4+ ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf
5+
6+ RUN mkdir -p /var/www/html
7+
8+ RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
9+
10+ RUN chown laravel:laravel /var/www/html
Original file line number Diff line number Diff line change 1- user 1000 ;
1+ user laravel ;
22worker_processes auto;
33
44error_log /var/log/nginx/error.log warn;
Original file line number Diff line number Diff line change 11FROM php:7.4-fpm-alpine
22
3- RUN addgroup -S 1000 && adduser -S 1000 -G 1000
4-
53ADD ./php/www.conf /usr/local/etc/php-fpm.d/www.conf
64
5+ RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel
6+
7+ RUN mkdir -p /var/www/html
8+
9+ RUN chown laravel:laravel /var/www/html
10+
711WORKDIR /var/www/html
812
913RUN docker-php-ext-install pdo pdo_mysql
Original file line number Diff line number Diff line change 2020; Unix user/group of processes
2121; Note: The user is mandatory. If the group is not set, the default user's group
2222; will be used.
23- user = 1000
24- group = 1000
23+ user = laravel
24+ group = laravel
2525
2626; The address on which to accept FastCGI requests.
2727; Valid syntaxes are:
You can’t perform that action at this time.
0 commit comments