Feature/404multidev * Fix socket location * Fix socket location * Fix socket location * Fix socket location * To fix sock file issue * fix issues with clear_env = no * Ondemand fpm and deploy update * Merged develop into feature/404multidev * Merged develop into feature/404multidev * Add config map for www pool and supd Approved-by: Rachit Bhargava
17 lines
796 B
Docker
17 lines
796 B
Docker
FROM wyveo/nginx-php-fpm:php74
|
|
RUN mkdir -p /var/lib/nginx/cache /usr/share/nginx/subdomain;cd /usr/share/nginx/subdomain;mkdir www
|
|
COPY wp/ /usr/share/nginx/subdomain/www
|
|
COPY ngx_http_cache_purge_module.so /usr/lib/nginx/modules/
|
|
RUN sed -i 's/;pm.status_path/pm.status_path/g' /etc/php/7.4/fpm/pool.d/www.conf
|
|
RUN sed -i -e '1iload_module modules/ngx_http_cache_purge_module.so;\' /etc/nginx/nginx.conf
|
|
RUN rm /etc/php/7.4/fpm/php.ini
|
|
RUN rm /etc/php/7.4/cli/php.ini
|
|
COPY php.ini /etc/php/7.4/cli/php.ini
|
|
COPY php.ini /etc/php/7.4/fpm/php.ini
|
|
RUN chmod +xw /etc/php/7.4/cli/php.ini
|
|
RUN chmod +xw /etc/php/7.4/fpm/php.ini
|
|
COPY redinessprobe-wp.sh /root/redinessprobe-wp.sh
|
|
RUN chmod +x /etc/nginx/conf.d/default.conf /root/redinessprobe-wp.sh
|
|
RUN chmod +xw -R /usr/share/nginx/
|
|
#USER nginx
|