File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,14 @@ RUN chown -R www-data:www-data /var/www/.wp-cli
88
88
89
89
90
90
# Create the index directory and set permissions
91
- RUN mkdir -p /var/www/index
91
+ RUN mkdir -p /var/www/index/wp-content/uploads
92
92
RUN chown -R www-data:www-data /var/www/index
93
93
94
94
95
95
# Use WP-CLI to intall WordPress
96
96
USER www-data
97
97
WORKDIR /var/www/index
98
- ARG WP_VERSION
98
+ ARG WP_VERSION
99
99
RUN wp core download --version=$WP_VERSION
100
100
101
101
# Add WordPress basic configuration
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -o errexit
3
+ set -o nounset
4
+
5
+ # https://en.wikipedia.org/wiki/ANSI_escape_code
6
+ E0=" $( printf " \e[0m" ) " # reset
7
+ E1=" $( printf " \e[1m" ) " # bold
2
8
3
9
/sbin/apache2ctl -v
4
- echo ' Starting webserver: http://127.0.0.1:8080'
10
+ echo " ${E1} Starting webserver: http://127.0.0.1:8080${E0} "
5
11
# Start Apache in the foreground
6
12
/sbin/apache2ctl -D FOREGROUND -k start
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ services:
13
13
container_name : index-web
14
14
depends_on :
15
15
- index-db
16
- build :
16
+ build :
17
17
args :
18
18
WP_VERSION : ${WP_VERSION}
19
19
context : .
You can’t perform that action at this time.
0 commit comments