File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1+ [pterodactyl]
2+
3+ user = nginx
4+ group = nginx
5+
6+ listen = /var/run/php/php-fpm7.2.sock
7+ listen.owner = nginx
8+ listen.group = nginx
9+ listen.mode = 0750
10+
11+ pm = ondemand
12+ pm.max_children = 9
13+ pm.process_idle_timeout = 10s
14+ pm.max_requests = 200
Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ FROM alpine:3.8
22
33WORKDIR /app
44
5- RUN apk add --no-cache --update ca-certificates certbot nginx dcron curl tini php7 php7-bcmath php7-common php7-dom php7-fpm php7-gd php7-mbstring php7-openssl php7-zip php7-pdo php7-phar php7-json php7-pdo_mysql php7-session php7-ctype php7-tokenizer php7-zlib \
5+ RUN apk add --no-cache --update ca-certificates certbot nginx dcron curl tini php7 php7-bcmath php7-common php7-dom php7-fpm php7-gd php7-mbstring php7-openssl php7-zip php7-pdo php7-phar php7-json php7-pdo_mysql php7-session php7-ctype php7-tokenizer php7-zlib php7-simplexml \
66 && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
77
88COPY . ./
99
10- COPY .dev/docker/default.conf /etc/nginx/conf.d/default.conf
11-
12- RUN cp .env.example .env && composer install --no-dev
10+ RUN cp .dev/docker/default.conf /etc/nginx/conf.d/default.conf \
11+ && cp .dev/docker/www.conf /etc/php7/php-fpm.d/www.conf \
12+ && cp .env.example .env \
13+ && composer install --no-dev
1314
1415EXPOSE 80 443
1516
16- RUN chown -R www-data:www-data . && chmod -R 777 storage/* bootstrap/cache /var/run/php
17-
18- ENTRYPOINT ["ash" , ".dev/entrypoint.sh" ]
17+ RUN chown -R nginx:nginx . && chmod -R 777 storage/* bootstrap/cache
1918
19+ ENTRYPOINT ["ash" , ".dev/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments