File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ README.md
22LICENCE
33.git
44docker-compose.yml
5+ Dockerfile
6+ .github
Original file line number Diff line number Diff line change 11FROM alpine:3 as bookstack
2- ENV BOOKSTACK_VERSION=21.05.2
2+ ENV BOOKSTACK_VERSION=21.11.3
33RUN apk add --no-cache curl tar
44RUN set -x; \
55 curl -SL -o bookstack.tar.gz https://github.com/BookStackApp/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz \
66 && mkdir -p /bookstack \
77 && tar xvf bookstack.tar.gz -C /bookstack --strip-components=1 \
88 && rm bookstack.tar.gz
99
10- FROM php:7.4 -apache-buster as final
10+ FROM php:8.0 -apache-buster as final
1111RUN set -x; \
1212 apt-get update \
1313 && apt-get install -y --no-install-recommends \
@@ -51,13 +51,11 @@ COPY bookstack.conf /etc/apache2/sites-available/000-default.conf
5151
5252COPY --from=bookstack --chown=33:33 /bookstack/ /var/www/bookstack/
5353
54- ARG COMPOSER_VERSION=1.10.16
54+ ARG COMPOSER_VERSION=2.1.12
5555RUN set -x; \
5656 cd /var/www/bookstack \
5757 && curl -sS https://getcomposer.org/installer | php -- --version=$COMPOSER_VERSION \
58- && /var/www/bookstack/composer.phar global -v require hirak/prestissimo \
5958 && /var/www/bookstack/composer.phar install -v -d /var/www/bookstack/ \
60- && /var/www/bookstack/composer.phar global -v remove hirak/prestissimo \
6159 && rm -rf /var/www/bookstack/composer.phar /root/.composer \
6260 && chown -R www-data:www-data /var/www/bookstack
6361
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
66 depends_on :
77 - bookstack
88 mysql :
9- image : mysql:5.7.33
9+ image : mysql:8.0
1010 environment :
1111 - MYSQL_ROOT_PASSWORD=secret
1212 - MYSQL_DATABASE=bookstack
@@ -20,6 +20,7 @@ services:
2020 depends_on :
2121 - mysql
2222 environment :
23+ - APP_URL=http://localhost:${DEV_PORT:-8080}
2324 - DB_HOST=mysql:3306
2425 - DB_DATABASE=bookstack
2526 - DB_USERNAME=bookstack
Original file line number Diff line number Diff line change 11version : ' 2'
22services :
33 mysql :
4- image : mysql:5.7.33
4+ image : mysql:8.0
55 environment :
66 - MYSQL_ROOT_PASSWORD=secret
77 - MYSQL_DATABASE=bookstack
You can’t perform that action at this time.
0 commit comments