forked from LiveCarta/LiveCartaWP
LAW-5954
This commit is contained in:
@@ -1,25 +1,18 @@
|
|||||||
FROM wordpress:4.9-fpm
|
FROM wordpress:5.9-fpm
|
||||||
|
|
||||||
ENV TMP /tmp/nginx-php/
|
ENV TMP /tmp/nginx-php/
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends nginx
|
||||||
libjpeg-dev \
|
|
||||||
libpng-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr/include \
|
|
||||||
&& docker-php-ext-install gd
|
|
||||||
|
|
||||||
# php configs
|
# php configs
|
||||||
COPY www.conf /usr/local/etc/php-fpm.d/www.conf
|
COPY www.conf /usr/local/etc/php-fpm.d/www.conf
|
||||||
COPY docker-php.ini /usr/local/etc/php/conf.d/docker-php.ini
|
COPY docker-php.ini /usr/local/etc/php/conf.d/docker-php.ini
|
||||||
|
|
||||||
RUN apt-get install -y nginx
|
|
||||||
|
|
||||||
# nginx configs
|
# nginx configs
|
||||||
COPY nginx /etc/nginx
|
COPY nginx /etc/nginx
|
||||||
|
|
||||||
# source code
|
# source code
|
||||||
COPY htdocs /var/www
|
COPY htdocs /var/www/html
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
chown -R www-data:www-data /var/www/html/
|
||||||
|
|
||||||
printf "\n\nStarting PHP daemon...\n\n"
|
printf "\n\nStarting PHP daemon...\n\n"
|
||||||
php-fpm --daemonize
|
php-fpm --daemonize
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name lawcarta.loc livecarta.loc localhost;
|
server_name lawcarta.loc livecarta.loc localhost;
|
||||||
|
|
||||||
root /var/www;
|
root /var/www/html;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
|
|||||||
Reference in New Issue
Block a user