Repository navigation
Expand file tree
/
Copy pathContainerfile
More file actions
67 lines (60 loc) · 2.65 KB
/
Copy pathContainerfile
File metadata and controls
67 lines (60 loc) · 2.65 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# SPDX-FileCopyrightText: © 2026 Nfrastack <code@nfrastack.com>
#
# SPDX-License-Identifier: MIT
ARG \
BASE_IMAGE
FROM ${BASE_IMAGE}
LABEL \
org.opencontainers.image.title="Wordpress" \
org.opencontainers.image.description="Containerized Content management system and blogging platform" \
org.opencontainers.image.url="https://hub.docker.com/r/nfrastack/wordpress" \
org.opencontainers.image.documentation="https://github.com/nfrastack/container-wordpress/blob/main/README.md" \
org.opencontainers.image.source="https://github.com/nfrastack/container-wordpress.git" \
org.opencontainers.image.authors="Nfrastack <code@nfrastack.com>" \
org.opencontainers.image.vendor="Nfrastack <https://www.nfrastack.com>" \
org.opencontainers.image.licenses="MIT"
ENV \
IMAGE_NAME="nfrastack/wordpress" \
IMAGE_REPO_URL="https://github.com/nfrastack/container-wordpress/"
COPY CHANGELOG.md /usr/src/container/CHANGELOG.md
COPY LICENSE /usr/src/container/LICENSE
COPY README.md /usr/src/container/README.md
RUN echo "" && \
BUILD_ENV=" \
10-nginx/NGINX_WEBROOT=/www/wordpress \
10-nginx/NGINX_SITE_ENABLED=wordpress \
10-nginx/NGINX_INDEX_FILE=index.php \
10-nginx/NGINX_CREATE_SAMPLE_HTML=FALSE \
20-php-fpm/PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE \
20-php-fpm/PHP_MODULE_ENABLE_EXIF=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_GD=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_IGBINARY=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_IMAGICK=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_MYSQLI=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_REDIS=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_SHMOP=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_SIMPLEXML=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_XML=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_XMLREADER=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_ZIP=TRUE \
" && \
\
WORDPRESS_RUN_DEPS_ALPIME=" \
xmlstarlet \
" \
&& \
\
source /container/base/functions/container/build && \
container_build_log && \
package update && \
package upgrade && \
package install \
WORDPRESS_RUN_DEPS \
&& \
php-ext prepare && \
php-ext reset && \
php-ext enable core && \
curl -o /usr/local/bin/wp-cli https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x /usr/local/bin/wp-cli && \
package cleanup
COPY rootfs /