Skip to content

Update Dockerfile 21.11.3 #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ README.md
LICENCE
.git
docker-compose.yml
Dockerfile
.github
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM alpine:3 as bookstack
ENV BOOKSTACK_VERSION=21.05.2
ENV BOOKSTACK_VERSION=21.11.3
RUN apk add --no-cache curl tar
RUN set -x; \
curl -SL -o bookstack.tar.gz https://github.com/BookStackApp/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz \
&& mkdir -p /bookstack \
&& tar xvf bookstack.tar.gz -C /bookstack --strip-components=1 \
&& rm bookstack.tar.gz

FROM php:7.4-apache-buster as final
FROM php:8.0-apache-buster as final
RUN set -x; \
apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -51,13 +51,11 @@ COPY bookstack.conf /etc/apache2/sites-available/000-default.conf

COPY --from=bookstack --chown=33:33 /bookstack/ /var/www/bookstack/

ARG COMPOSER_VERSION=1.10.16
ARG COMPOSER_VERSION=2.1.12
RUN set -x; \
cd /var/www/bookstack \
&& curl -sS https://getcomposer.org/installer | php -- --version=$COMPOSER_VERSION \
&& /var/www/bookstack/composer.phar global -v require hirak/prestissimo \
&& /var/www/bookstack/composer.phar install -v -d /var/www/bookstack/ \
&& /var/www/bookstack/composer.phar global -v remove hirak/prestissimo \
&& rm -rf /var/www/bookstack/composer.phar /root/.composer \
&& chown -R www-data:www-data /var/www/bookstack

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
depends_on:
- bookstack
mysql:
image: mysql:5.7.33
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=bookstack
Expand All @@ -20,6 +20,7 @@ services:
depends_on:
- mysql
environment:
- APP_URL=http://localhost:${DEV_PORT:-8080}
- DB_HOST=mysql:3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
mysql:
image: mysql:5.7.33
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=bookstack
Expand Down