2020-03-31 10:47:40 +00:00
|
|
|
FROM wordpress:latest
|
|
|
|
|
|
|
|
CMD echo "Installing dependencies..."
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y install subversion unzip wget git-all
|
|
|
|
|
|
|
|
CMD echo "Installing tests..."
|
|
|
|
|
|
|
|
ENV WP_TESTS_DIR=/tmp/wordpress-tests-lib
|
2020-08-12 14:54:02 +00:00
|
|
|
ENV WP_CORE_DIR=/tmp/src/wordpress
|
2020-03-31 10:47:40 +00:00
|
|
|
|
|
|
|
COPY install-wp-tests.sh /usr/local/bin/dockerInit
|
|
|
|
RUN chmod +x /usr/local/bin/dockerInit
|
|
|
|
RUN dockerInit wordpress wordpress wordpress db latest true
|
|
|
|
|
|
|
|
# This is the entrypoint script from the WordPress Docker package.
|
|
|
|
CMD ["docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
# Keep container active
|
|
|
|
CMD ["apache2-foreground"]
|