Fixing install
Adding php fpm conf and fixing dockerfile
This commit is contained in:
parent
5427b7e172
commit
b7da8532ba
2 changed files with 21 additions and 7 deletions
14
.dev/docker/www.conf
Normal file
14
.dev/docker/www.conf
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[pterodactyl]
|
||||||
|
|
||||||
|
user = nginx
|
||||||
|
group = nginx
|
||||||
|
|
||||||
|
listen = /var/run/php/php-fpm7.2.sock
|
||||||
|
listen.owner = nginx
|
||||||
|
listen.group = nginx
|
||||||
|
listen.mode = 0750
|
||||||
|
|
||||||
|
pm = ondemand
|
||||||
|
pm.max_children = 9
|
||||||
|
pm.process_idle_timeout = 10s
|
||||||
|
pm.max_requests = 200
|
14
Dockerfile
14
Dockerfile
|
@ -2,18 +2,18 @@ FROM alpine:3.8
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
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 \
|
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 \
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
COPY .dev/docker/default.conf /etc/nginx/conf.d/default.conf
|
RUN cp .dev/docker/default.conf /etc/nginx/conf.d/default.conf \
|
||||||
|
&& cp .dev/docker/www.conf /etc/php7/php-fpm.d/www.conf \
|
||||||
RUN cp .env.example .env && composer install --no-dev
|
&& cp .env.example .env \
|
||||||
|
&& composer install --no-dev
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
RUN chown -R www-data:www-data . && chmod -R 777 storage/* bootstrap/cache /var/run/php
|
RUN chown -R nginx:nginx . && chmod -R 777 storage/* bootstrap/cache
|
||||||
|
|
||||||
ENTRYPOINT ["ash", ".dev/entrypoint.sh"]
|
|
||||||
|
|
||||||
|
ENTRYPOINT ["ash", ".dev/entrypoint.sh"]
|
Loading…
Add table
Reference in a new issue