wordpress/Dockerfile

31 lines
870 B
Docker
Raw Normal View History

2022-12-18 00:26:19 +01:00
FROM registry.sindominio.net/nginx-php
RUN apt-get update && \
apt-get -qy install --no-install-recommends \
gnupg ca-certificates less \
php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-redis && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install wp-cli
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp
RUN chmod +rx /usr/local/bin/wp
# verify wp-cli signature
COPY wp-key.asc /key.asc
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar.asc /wp.asc
RUN gpg --import /key.asc && \
gpg --verify /wp.asc /usr/local/bin/wp
RUN mkdir /app
WORKDIR /app
# install wordpress
RUN wp --allow-root core download
ADD wp-config.php /app/
# TODO: install themes and plugins
VOLUME /app/wp-content/uploads
ADD setup /etc/setup