Skip to content

Commit 7ffd75a

Browse files
committed
Allow set Wordpress version and php version
1 parent 725fc74 commit 7ffd75a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docker/wordpress/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
ARG WORDPRESS_VERSION=6
22
ARG PHP_VERSION=8.2
33

4-
FROM wordpress:${WORDPRESS_VERSION}-php${PHP_VERSION}-fpm-alpine
4+
FROM wordpress:cli-php${PHP_VERSION} AS cli
55

6-
ARG WORDPRESS_VERSION
7-
ARG PHP_VERSION
6+
FROM wordpress:${WORDPRESS_VERSION}-php${PHP_VERSION}-fpm-alpine
87

98
WORKDIR /var/www/html
109

@@ -39,4 +38,4 @@ RUN apk add --update --no-cache \
3938
;
4039

4140
# Install WP-CLI
42-
COPY --from=wordpress:cli-php${PHP_VERSION} /usr/local/bin/wp /usr/local/bin/wp
41+
COPY --from=cli /usr/local/bin/wp /usr/local/bin/wp

0 commit comments

Comments
 (0)