mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 10:41:05 +01:00
31 lines
870 B
Docker
31 lines
870 B
Docker
|
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
|