Skip to content

Commit 2040bc6

Browse files
committed
1.10.0pre
1 parent b28bf6b commit 2040bc6

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

Containerfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LABEL \
1717
org.opencontainers.image.licenses="MIT"
1818

1919
ARG \
20-
BOOKSTACK_VERSION="v25.11.6" \
20+
BOOKSTACK_VERSION="v25.12" \
2121
BOOKSTACK_REPO_URL="https://github.com/BookStackApp/BookStack"
2222

2323
COPY CHANGELOG.md /usr/src/container/CHANGELOG.md
@@ -34,6 +34,7 @@ ENV \
3434
PHP_MODULE_ENABLE_FILEINFO=TRUE \
3535
PHP_MODULE_ENABLE_TOKENIZER=TRUE \
3636
PHP_MODULE_ENABLE_XMLWRITER=TRUE \
37+
PHP_MODULE_ENABLE_ZIP=TRUE \
3738
NGINX_WEBROOT=/www/bookstack \
3839
NGINX_SITE_ENABLED=bookstack \
3940
CONTAINER_ENABLE_MESSAGING=TRUE \
@@ -51,8 +52,8 @@ RUN echo "" && \
5152
jpegoptim \
5253
libmemcached \
5354
optipng \
54-
" \
55-
&& \
55+
" \
56+
&& \
5657
source /container/base/functions/container/build && \
5758
container_build_log image && \
5859
package update && \
@@ -65,16 +66,17 @@ RUN echo "" && \
6566
php-ext reset && \
6667
php-ext enable core && \
6768
\
68-
clone_git_repo "${BOOKSTACK_REPO_URL}" "${BOOKSTACK_VERSION}" /container/data/bookstack-install && \
69-
if [ -d "/build-assets/src" ] ; then cp -Rp /build-assets/src/* /container/data/bookstack-install ; fi; \
70-
if [ -d "/build-assets/scripts" ] ; then for script in /build-assets/scripts/*.sh; do echo "** Applying $script"; bash $script; done && \ ; fi ; \
69+
clone_git_repo "${BOOKSTACK_REPO_URL}" "${BOOKSTACK_VERSION}" /container/data/bookstack/install && \
70+
build_assets /build-assets/src "${GIT_REPO_BOOKSTACK}" && \
71+
build_assets scripts && \
7172
composer install && \
7273
\
73-
rm -rf /container/data/bookstack-install/.git \
74-
/container/data/bookstack-install/*.yml \
75-
/container/data/bookstack-install/dev \
76-
/container/data/bookstack-install/php*.xml \
77-
/container/data/bookstack-install/tests \
74+
rm -rf \
75+
/container/data/bookstack/install/.git \
76+
/container/data/bookstack/install/*.yml \
77+
/container/data/bookstack/install/dev \
78+
/container/data/bookstack/install/php*.xml \
79+
/container/data/bookstack/install/tests \
7880
&& \
7981
container_build_log add "BookStack ${BOOKSTACK_VERSION}" "${BOOKSTACK_REPO_URL}" && \
8082
\

rootfs/container/init/init.d/30-bookstack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ln -sf "${LOG_PATH}" "${NGINX_WEBROOT}"/storage/logs
2121
### Check if New Install
2222
if [ ! -f "${NGINX_WEBROOT}"/server.php ]; then
2323
print_warn "Potential New Installation / Standalone Installation Detected - Copying Bookstack Sourcecode"
24-
cp -R /container/data/bookstack-install/* "${NGINX_WEBROOT}"
24+
cp -R /container/data/bookstack/install/* "${NGINX_WEBROOT}"
2525

2626
### If running with /www/html or NGINX_WEBROOT mapped, then create persistent storage
2727
### Storage redirection
@@ -61,7 +61,7 @@ else
6161
if var_true "${ENABLE_AUTO_UPDATE}"; then
6262
if [ "${BOOKSTACK_VERSION}" != $(head -n 1 "${NGINX_WEBROOT}"/.bookstack-version | awk '{print $1'}) ]; then
6363
print_warn "Detected in place Bookstack version $(head -n 1 "${NGINX_WEBROOT}"/.bookstack-version | awk "{print $1"}) - Upgrading to ${BOOKSTACK_VERSION}"
64-
cp -aR /container/data/bookstack-install/* "${NGINX_WEBROOT}"
64+
cp -aR /container/data/bookstack/install/* "${NGINX_WEBROOT}"
6565
chown -R "${NGINX_USER}":"${NGINX_GROUP}" "${NGINX_WEBROOT}"
6666
cd "${NGINX_WEBROOT}" || exit
6767
silent sudo -u "${NGINX_USER}" sudo -u "${NGINX_USER}" php artisan migrate --force

0 commit comments

Comments
 (0)