-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use archive instead of git repository when building WordPress
- Loading branch information
1 parent
0c237c2
commit ea535d5
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# syntax=docker/dockerfile:1.7 | ||
FROM --platform=$BUILDPLATFORM scratch AS build | ||
ARG WP_GIT_REF | ||
ADD https://github.com/WordPress/WordPress.git#${WP_GIT_REF} /wp | ||
ADD https://github.com/WordPress/WordPress/archive/refs/tags/${WP_GIT_REF}.tar.gz /wp/ | ||
COPY extra/ /wp/ | ||
|
||
FROM ghcr.io/automattic/vip-container-images/helpers:v1@sha256:bc2beca042ce7c47e2b737920c77248f4a6c25cc7e137bf9de6944af8a68701c AS helpers | ||
FROM busybox:stable-musl@sha256:b4771ab006a5344931341972e1e4b1ff14db2c327eeab0053416aa2277213b1d | ||
COPY --from=build --link /wp /wp | ||
COPY --from=build --link --chown=1000:1000 /wp /wp | ||
COPY --from=helpers /rsync /usr/bin/rsync |