FROM debian:buster # bash and vim for debug RUN apt update && apt install -y \ php7.3 \ php7.3-fpm \ php7.3-mysqli \ mariadb-client \ curl \ bash vim RUN rm -rf /var/lib/apt/lists/* # fpm config COPY ./conf/www.conf /etc/php/7.3/fpm/pool.d/ RUN mkdir /run/php/ # install wp-cli : https://make.wordpress.org/cli/handbook/guides/installing/ RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar &&\ chmod +x wp-cli.phar && \ mv wp-cli.phar /usr/local/bin/wp COPY ./conf/wp_entrypoint.sh ./ ENTRYPOINT [ "sh", "wp_entrypoint.sh" ]