wordpress/php-fpm/Dockerfile

34 lines
908 B
Docker
Raw Normal View History

2020-05-21 12:49:20 +02:00
FROM registry.sindominio.net/debian
RUN apt-get update && \
apt-get -qy install \
php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip \
ghostscript wget curl openssl && \
2020-05-21 12:49:20 +02:00
apt-get clean
RUN useradd -lMs /sbin/nologin wordpress
COPY wordpress.conf /etc/php/7.3/fpm/pool.d/www.conf
RUN mkdir /run/php/
RUN mkdir logs
WORKDIR sindominio
2020-05-21 12:49:20 +02:00
RUN wget -O wordpress.tar.gz "https://wordpress.org/latest.tar.gz"
RUN tar -xzf wordpress.tar.gz
RUN rm wordpress.tar.gz
ADD wp-config.php /sindominio/wordpress/wp-config.php
RUN chown -R wordpress:wordpress /sindominio/wordpress
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
RUN chmod +x wp-cli.phar
RUN mv wp-cli.phar /usr/local/bin/wp
2020-05-21 12:49:20 +02:00
EXPOSE 9000
VOLUME /sindominio/
CMD ["/usr/sbin/php-fpm7.3","--nodaemonize"]]