Skip to content

Commit fe3e16a

Browse files
committed
update wordpress version, update README and remove extra space
1 parent b5e62dd commit fe3e16a

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apt-get install -y \
2525
less \
2626
libapache2-mod-php \
2727
mariadb-client \
28-
php 8.2 \
28+
php8.2 \
2929
php8.2-mbstring \
3030
php8.2-mysql \
3131
php8.2-pdo \
@@ -94,7 +94,8 @@ RUN chown -R www-data:www-data /var/www/index
9494
# Use WP-CLI to intall WordPress
9595
USER www-data
9696
WORKDIR /var/www/index
97-
RUN wp core download
97+
ARG WP_VERSION
98+
RUN wp core download --version=$WP_VERSION
9899

99100
# Add WordPress basic configuration
100101
# 1) Download wp-config-docker.php for use as wp-config.php. Friendly view at:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Also see [`.env.example`](.env.example).
173173
174174
| Name | Version |
175175
| -------------------------------------------------------- | -------- |
176-
| [Advanced Custom Fields][adv-custom-fields] | `6.2.7` |
176+
| [Advanced Custom Fields][adv-custom-fields] | `6.2.1` |
177177
| [Advanced Custom Fields: Menu Chooser][acf-menu-chooser] | `1.1.0` |
178178
| [Classic Editor][classic-editor] | `1.6.3` |
179179
| [Monster Insights Google Analytics][monster-insights] | `8.19` |

docker-compose.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ services:
1313
container_name: index-web
1414
depends_on:
1515
- index-db
16-
build: .
16+
build:
17+
args:
18+
WP_VERSION: ${WP_VERSION}
19+
context: .
1720
networks:
1821
- index-backend
1922
environment:

setup-wordpress.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ classic-editor
4747
redirection
4848
tablepress
4949
wordpress-importer
50-
wordpress-seo
51-
'
50+
wordpress-seo'
5251

5352
WP_USER="www-data"
5453

0 commit comments

Comments
 (0)