Skip to content

Commit

Permalink
Allow set Wordpress version and php version
Browse files Browse the repository at this point in the history
  • Loading branch information
oanhnn committed Feb 19, 2024
1 parent 725fc74 commit 7ffd75a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/wordpress/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
ARG WORDPRESS_VERSION=6
ARG PHP_VERSION=8.2

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

ARG WORDPRESS_VERSION
ARG PHP_VERSION
FROM wordpress:${WORDPRESS_VERSION}-php${PHP_VERSION}-fpm-alpine

WORKDIR /var/www/html

Expand Down Expand Up @@ -39,4 +38,4 @@ RUN apk add --update --no-cache \
;

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

0 comments on commit 7ffd75a

Please sign in to comment.