Actualizar 'Dockerfile'

ADD wordpress home to /app/wordpress && comment
This commit is contained in:
Luca 2021-05-05 12:51:28 +00:00
parent a623668c17
commit 0ad95330d8

View File

@ -6,7 +6,7 @@ RUN apt-get update && \
sudo wget curl ca-certificates less &&\ sudo wget curl ca-certificates less &&\
apt-get clean apt-get clean
RUN useradd wordpress -d /app/ RUN useradd wordpress -d /app/wordpress
COPY wordpress.conf /etc/php/7.3/fpm/pool.d/www.conf COPY wordpress.conf /etc/php/7.3/fpm/pool.d/www.conf
RUN mkdir /run/php/ RUN mkdir /run/php/
#RUN mkdir logs #RUN mkdir logs
@ -23,6 +23,7 @@ RUN rm latest.tar.gz
#ADD wordpress_files/sunrise.php /app/wordpress/wp-content/sunrise.php #ADD wordpress_files/sunrise.php /app/wordpress/wp-content/sunrise.php
RUN chown -R wordpress:wordpress /app/ RUN chown -R wordpress:wordpress /app/
# ADD WP-CLI
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
RUN chmod +x wp-cli.phar RUN chmod +x wp-cli.phar
RUN mv wp-cli.phar wp RUN mv wp-cli.phar wp