Skip to content

Commit b7da853

Browse files
committed
Fixing install
Adding php fpm conf and fixing dockerfile
1 parent 5427b7e commit b7da853

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.dev/docker/www.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ FROM alpine:3.8
22

33
WORKDIR /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

88
COPY . ./
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

1415
EXPOSE 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"]

0 commit comments

Comments
 (0)