Skip to content

Commit 41de02a

Browse files
committed
build: use volume mount instead of copy for /WordPress
This makes it a bit easier to debug stuff locally by not having to rebuild the image when setting temporary breakpoints or log statements in WordPress code.
1 parent c82ea25 commit 41de02a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@ RUN apt-get update && apt-get upgrade -y
77
RUN a2enmod rewrite && \
88
mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
99

10-
COPY ./WordPress /var/www/html
11-
1210
EXPOSE 80
13-
EXPOSE 443

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- WORDPRESS_DB_USER=root
1313
- WORDPRESS_DB_PASSWORD=root
1414
volumes:
15+
- ./WordPress:/var/www/html:readonly
1516
- ./jquery-wp-content:/var/www/html/wp-content
1617
- ./uploads:/var/www/html/wp-content/uploads:rw
1718
- ./wp-config.php:/var/www/html/wp-config.php

0 commit comments

Comments
 (0)