bookstack (sha256:4c9d2d5d2cb62db194f0b5064b4d968e532e537f1c9e357dc2bdc88f87da1fe7)

Published 2026-10-06 00:24:49 +00:00 by ferociousbyte

Installation

docker pull code.talaryon.dev/talaryonlabs/bookstack@sha256:4c9d2d5d2cb62db194f0b5064b4d968e532e537f1c9e357dc2bdc88f87da1fe7
sha256:4c9d2d5d2cb62db194f0b5064b4d968e532e537f1c9e357dc2bdc88f87da1fe7

Image layers

ADD alpine-minirootfs-3.19.9-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
LABEL maintainer=Talaryon Labs <hello@talaryonlabs.com>
ARG IMAGE_VERSION=v26.03.3
ENV TZ=Europe/Vienna FPM_ENDPOINT=php-fpm:9000
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c apk add --no-cache ca-certificates curl openssl bash tzdata nginx busybox-extras mariadb-client php82 php82-fpm php82-dom php82-gd php82-mysqlnd php82-curl php82-mbstring php82-xml php82-zip php82-ctype php82-fileinfo php82-tokenizer php82-simplexml php82-intl php82-session php82-opcache php82-pdo php82-pdo_mysql php82-phar php82-openssl && apk add --no-cache --virtual .build-deps git composer # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c getent group www-data >/dev/null || addgroup -S -g 82 www-data; adduser -S -D -H -u 101 -G www-data -h /var/www www-data && [ "$(id -u www-data):$(id -g www-data)" = "101:82" ] # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c sed -i -e 's|^listen =.*|listen = 0.0.0.0:9000|' -e '/^user = /d' -e '/^group = /d' -e 's|;pm.max_children.*|pm.max_children = 20|' -e 's|;pm.start_servers.*|pm.start_servers = 5|' -e 's|;pm.min_spare_servers.*|pm.min_spare_servers = 3|' -e 's|;pm.max_spare_servers.*|pm.max_spare_servers = 10|' -e 's|;pm.max_requests.*|pm.max_requests = 500|' -e 's|;request_terminate_timeout.*|request_terminate_timeout = 300|' -e 's|;clear_env = no|clear_env = no|' -e 's|;catch_workers_output = yes|catch_workers_output = yes|' -e 's|;decorate_workers_output = no|decorate_workers_output = no|' /etc/php82/php-fpm.d/www.conf && grep -q '^clear_env = no' /etc/php82/php-fpm.d/www.conf && printf 'php_admin_value[error_log] = /dev/stderr\nphp_admin_flag[log_errors] = on\n' >> /etc/php82/php-fpm.d/www.conf && sed -i -e 's|^;*pid =.*|pid = /tmp/php-fpm82.pid|' -e 's|^;*error_log =.*|error_log = /dev/stderr|' /etc/php82/php-fpm.conf # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c sed -i -e 's|;error_reporting.*|error_reporting = E_ALL|' -e 's|;display_errors.*|display_errors = On|' -e 's|;log_errors.*|log_errors = On|' -e 's|;error_log.*|error_log = /dev/stderr|' /etc/php82/php.ini # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit
WORKDIR /var/www
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch html # buildkit
WORKDIR /var/www/html
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c git checkout ${IMAGE_VERSION} && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader --no-interaction && rm -rf .git .env.example .env.example.complete # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c mkdir -p /opt/bookstack-backup /config && cp -r /var/www/html/public /var/www/html/storage /opt/bookstack-backup/ && chown -R www-data:www-data /var/www/html /opt/bookstack-backup /config /var/lib/nginx /var/log/nginx && chmod -R u+rwX,g+rwX /var/www/html/storage /var/www/html/bootstrap/cache /config # buildkit
COPY nginx/nginx.conf /etc/nginx/nginx.conf # buildkit
COPY nginx/bookstack.conf /etc/nginx/bookstack.conf.template # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c rm -f /etc/nginx/http.d/default.conf # buildkit
COPY entrypoint.sh /entrypoint.sh # buildkit
COPY entrypoint-nginx.sh /entrypoint-nginx.sh # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c chmod 755 /entrypoint.sh /entrypoint-nginx.sh # buildkit
RUN |1 IMAGE_VERSION=v26.03.3 /bin/sh -c apk del .build-deps && rm -rf /var/cache/apk/* /tmp/* /var/tmp/* /root/.composer # buildkit
VOLUME [/var/www/html/public /var/www/html/storage /config]
EXPOSE [8080/tcp 9000/tcp]
USER 101:82
ENTRYPOINT ["/entrypoint.sh"]

Labels

Key Value
maintainer Talaryon Labs <hello@talaryonlabs.com>
org.opencontainers.image.source containerimages/bookstack
org.opencontainers.image.version v26.03.3-78
Details
Container
2026-10-06 00:24:49 +00:00
10
OCI / Docker
linux/amd64
158 MiB
Versions (5) View all
main 2026-10-06
latest 2026-10-06
v26.03.3 2026-10-06
v26.03.3-79 2026-10-06
v26.03.3-78 2026-10-06