Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (30 sloc) 1.21 KB
FROM jamesits/easyphp:latest
LABEL maintainer="docker@public.swineson.me"
VOLUME /var/www/html
ARG WORDPRESS_VERSION=5.0.3
ARG WORDPRESS_SHA1=F9A4B482288B5BE7A71E9F3DC9B5B0C1F881102B
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VERSION}.tar.gz \
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
&& rm wordpress.tar.gz \
&& chown -R www-data:www-data /usr/src/wordpress
# install wp-cli from https://wp-cli.org/
RUN curl -SLO https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& mkdir -p /usr/src/wp-cli \
&& mv wp-cli.phar /usr/src/wp-cli/ \
&& chmod +x /usr/src/wp-cli/wp-cli.phar
RUN { \
echo '#!/bin/bash'; \
echo 'cd ${WORDPRESS_ROOT:-/var/www/html/}'; \
echo 'exec sudo -u www-data -s -- php /usr/src/wp-cli/wp-cli.phar $@'; \
} > /usr/bin/wp \
&& chmod +x /usr/bin/wp \
&& wp --info
COPY docker-entrypoint.sh /usr/local/bin/
# backwards compat
RUN rm -f /entrypoint.sh \
&& ln -s /usr/local/bin/docker-entrypoint.sh /entrypoint.sh
# ENTRYPOINT resets CMD
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]
You can’t perform that action at this time.