php-fpm/Dockerfile

15 lines
787 B
Docker

ARG version=7.4
FROM wordpress:php${version}-fpm-alpine
ARG version=7.4
ENV updraft_version=1.23.3
RUN echo "image: wordpress[$version]:php${version}-fpm-alpine"
RUN apk add --update libzip-dev curl-dev oniguruma-dev
RUN docker-php-ext-install pdo pdo_mysql curl zip
COPY docker-user.ini /usr/local/etc/php/conf.d
COPY adminer-4.8.1-mysql-en /usr/src/wordpress/madminer.php
COPY phpFileManager.php /usr/src/wordpress/mfile.php
RUN chown www-data:www-data /usr/src/wordpress/fmanage.php
RUN cd /usr/src/wordpress/wp-content/plugins
RUN curl -o /tmp/updraftplus.zip -fL "https://downloads.wordpress.org/plugin/updraftplus.${updraft_version}.zip"
RUN unzip -o /tmp/updraftplus.zip -d /usr/src/wordpress/wp-content/plugins
RUN chown -R www-data:www-data /usr/src/wordpress/wp-content/plugins