File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1.7
2- FROM --platform=$BUILDPLATFORM scratch AS build-wp
2+ FROM --platform=$BUILDPLATFORM busybox:stable-musl@sha256:7fe2d84eca21fa921a1006acaa68da15ed0acb7e1d21e5f3149bb6923af38498 AS build-wp
33ARG WP_GIT_REF
44ADD https://github.com/WordPress/WordPress.git#${WP_GIT_REF} /wp
5+ RUN rm -rf /wp/wp-content
56COPY extra/ /wp/
6- RUN echo "${WP_GIT_REF}" > /wp/wp-content/.version
77
88FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c AS build-wptl
99ARG WP_GIT_REF
1010RUN \
11- apk add --no-cache curl subversion && \
11+ apk add --no-cache subversion && \
1212 if [ -z "${WP_GIT_REF}" ]; then \
1313 TESTS_TAG=trunk; \
1414 else \
1515 TESTS_TAG="tags/${WP_GIT_REF}" ; \
1616 fi && \
1717 svn co --quiet --ignore-externals "https://develop.svn.wordpress.org/${TESTS_TAG}/tests/phpunit/includes/" /wordpress-tests-lib/includes && \
1818 svn co --quiet --ignore-externals "https://develop.svn.wordpress.org/${TESTS_TAG}/tests/phpunit/data/" /wordpress-tests-lib/data && \
19- curl -sL "https://develop.svn.wordpress.org/${TESTS_TAG}/wp-tests-config-sample.php" | \
19+ wget -qO- "https://develop.svn.wordpress.org/${TESTS_TAG}/wp-tests-config-sample.php" | \
2020 sed \
2121 "s/youremptytestdbnamehere/wordpress_test/; s/yourusernamehere/wordpress/; s/yourpasswordhere/wordpress/; s/localhost/database/; s:dirname( __FILE__ ) . '/src/':'/wp/':" \
2222 > /wordpress-tests-lib/wp-tests-config.php
You can’t perform that action at this time.
0 commit comments