You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
904 B
Docker

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

FROM wordpress:latest
# WP-CLI and other extras …
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp
# keep the upstream entrypoint
RUN mv /usr/local/bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint-upstream.sh
# tracked application code
COPY docker/wordpress/public_dir/themes /usr/src/themes
COPY docker/wordpress/public_dir/to-bool.php /usr/src/to-bool.php
COPY docker/wordpress/duplicator-initial-deploy /usr/src/duplicator
COPY docker/wordpress/php.ini /usr/local/etc/php/php.ini
# custom wrapper
COPY docker/wordpress/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 80
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]