-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathContainerfile
More file actions
88 lines (80 loc) · 3.42 KB
/
Containerfile
File metadata and controls
88 lines (80 loc) · 3.42 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# SPDX-FileCopyrightText: © 2026 Nfrastack <[email protected]>
#
# SPDX-License-Identifier: MIT
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
LABEL \
org.opencontainers.image.title="BookStack" \
org.opencontainers.image.description="Containerized knowledge information tool with included webserver and PHP interpreter" \
org.opencontainers.image.url="https://hub.docker.com/r/nfrastack/bookstack" \
org.opencontainers.image.documentation="https://github.com/nfrastack/container-bookstack/blob/main/README.md" \
org.opencontainers.image.source="https://github.com/nfrastack/container-bookstack.git" \
org.opencontainers.image.authors="Nfrastack <[email protected]>" \
org.opencontainers.image.vendor="Nfrastack <https://www.nfrastack.com>" \
org.opencontainers.image.licenses="MIT"
ARG \
BOOKSTACK_VERSION="v26.3.3" \
BOOKSTACK_REPO_URL="https://github.com/BookStackApp/BookStack"
COPY CHANGELOG.md /usr/src/container/CHANGELOG.md
COPY LICENSE /usr/src/container/LICENSE
COPY README.md /usr/src/container/README.md
ENV \
NGINX_WEBROOT=/www/bookstack \
IMAGE_NAME="nfrastack/bookstack" \
IMAGE_REPO_URL="https://github.com/nfrastack/container-bookstack/"
RUN echo "" && \
BUILD_ENV=" \
10-nginx/NGINX_SITE_ENABLED=bookstack \
20-php-fpm/PHP_MODULE_ENABLE_CREATE_SAMPLE_PHP=FALSE \
20-php-fpm/PHP_MODULE_ENABLE_LDAP=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_SIMPLEXML=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_MEMCACHED=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_PDO=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_PDO_MYSQL=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_FILEINFO=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_TOKENIZER=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_XMLWRITER=TRUE \
20-php-fpm/PHP_MODULE_ENABLE_ZIP=TRUE \
" \
&& \
BOOKSTACK_BUILD_DEPS_ALPINE=" \
git \
" \
&& \
BOOKSTACK_RUN_DEPS_ALPINE=" \
fontconfig \
git \
jpegoptim \
libmemcached \
optipng \
" \
&& \
source /container/base/functions/container/build && \
container_build_log image && \
package update && \
package upgrade && \
package install \
BOOKSTACK_BUILD_DEPS \
BOOKSTACK_RUN_DEPS \
&& \
php-ext prepare && \
php-ext reset && \
php-ext enable core && \
\
clone_git_repo "${BOOKSTACK_REPO_URL}" "${BOOKSTACK_VERSION}" /container/data/bookstack/install && \
build_assets /build-assets/src "${GIT_REPO_BOOKSTACK}" && \
build_assets scripts && \
composer install && \
\
rm -rf \
/container/data/bookstack/install/.git \
/container/data/bookstack/install/*.yml \
/container/data/bookstack/install/dev \
/container/data/bookstack/install/php*.xml \
/container/data/bookstack/install/tests \
&& \
container_build_log add "BookStack ${BOOKSTACK_VERSION}" "${BOOKSTACK_REPO_URL}" && \
\
package remove BOOKSTACK_BUILD_DEPS && \
package cleanup
COPY rootfs /