Skip to content

Commit 2238054

Browse files
committed
fix: switch to busybox:stable-musl for builds
1 parent e40427f commit 2238054

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wordpress/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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
33
ARG WP_GIT_REF
44
ADD https://github.com/WordPress/WordPress.git#${WP_GIT_REF} /wp
5+
RUN rm -rf /wp/wp-content
56
COPY extra/ /wp/
6-
RUN echo "${WP_GIT_REF}" > /wp/wp-content/.version
77

88
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c AS build-wptl
99
ARG WP_GIT_REF
1010
RUN \
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

0 commit comments

Comments
 (0)