-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.esh
46 lines (39 loc) · 1.81 KB
/
Dockerfile.esh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ghcr.io/bfren/nginx-php:php<%= ${PHP_REVISION} %>-<%= ${BASE_VERSION} %>
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-wordpress"
ARG BF_IMAGE
ARG BF_PUBLISHING
ARG BF_VERSION
ARG \
# set to a valid WordPress version or the installation will fail
# if empty, will use value in /overlay/tmp/WP_VERSION
WP_VERSION= \
# set to a valid WordPress locale or the installation will fail
# if empty, will use value in /overlay/tmp/WP_LOCALE
WP_LOCALE=
COPY ./overlay /
COPY ./php<%= ${PHP_MINOR} %>/overlay /
ENV \
# load the WordPress login page for healthcheck
BF_NGINX_HEALTHCHECK_URI=http://localhost/wp-login.php \
# options for config file permissions:
# - 0 (make it writeable by web server user)
# - 1 (make it readonly to web server user)
BF_WP_CONFIG_HARDEN=1 \
# options for config file generation:
# - 0 (generate on container startup if it does not exist)
# - 1 (always regenerate on container startup)
BF_WP_CONFIG_REGENERATE=1 \
# set to 0 to re-enable WordPress core updates - otherwise they will be handled by the image
BF_WP_DISABLE_MAJOR_UPDATES=1 \
# whether or not to enable HTTPS behind a proxy server
BF_WP_ENABLE_HTTPS_BEHIND_PROXY=1 \
# set to 0 if you don't want the NinjaFirewall plugin to be installed automatically and setup
# to run in full WAF mode (you will still have to enable it in the WordPress backend)
BF_WP_INSTALL_NINJAFIREWALL=1 \
# set to 0 if you don't want the WebAuthn plugin to be installed automatically
BF_WP_INSTALL_WEBAUTHN=1 \
# set to 0 to use WordPress cron instead of system cron (will reduce performance)
# you must remove define('DISABLE_WP_CRON', true); to wp-config.php to make a difference
BF_WP_USE_SYSTEM_CRON=1
RUN bf-install
VOLUME [ "/wp-content" ]