Skip to content

Commit 2c9fc63

Browse files
committed
feat(wordpress): strip wp-content
1 parent 5b6d135 commit 2c9fc63

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

wordpress/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +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/
67

78
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c AS build-wptl
89
ARG WP_GIT_REF
910
RUN \
10-
apk add --no-cache curl subversion && \
11+
apk add --no-cache subversion && \
1112
if [ -z "${WP_GIT_REF}" ]; then \
1213
TESTS_TAG=trunk; \
1314
else \
1415
TESTS_TAG="tags/${WP_GIT_REF}"; \
1516
fi && \
1617
svn co --quiet --ignore-externals "https://develop.svn.wordpress.org/${TESTS_TAG}/tests/phpunit/includes/" /wordpress-tests-lib/includes && \
1718
svn co --quiet --ignore-externals "https://develop.svn.wordpress.org/${TESTS_TAG}/tests/phpunit/data/" /wordpress-tests-lib/data && \
18-
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" | \
1920
sed \
2021
"s/youremptytestdbnamehere/wordpress_test/; s/yourusernamehere/wordpress/; s/yourpasswordhere/wordpress/; s/localhost/database/; s:dirname( __FILE__ ) . '/src/':'/wp/':" \
2122
> /wordpress-tests-lib/wp-tests-config.php

wordpress/extra/config/.nodelete

Lines changed: 0 additions & 1 deletion
This file was deleted.

wordpress/extra/vip-config/.nodelete

Lines changed: 0 additions & 1 deletion
This file was deleted.

wordpress/extra/wp-content/client-mu-plugins/.nodelete

Whitespace-only changes.

wordpress/extra/wp-content/images/.nodelete

Whitespace-only changes.

wordpress/extra/wp-content/languages/.nodelete

Whitespace-only changes.

wordpress/extra/wp-content/mu-plugins/.nodelete

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)