]> BookStack Code Mirror - bookstack/blob - dev/docker/db-testing/Dockerfile
DB: Added initial DB testing docker-based script
[bookstack] / dev / docker / db-testing / Dockerfile
1 FROM ubuntu:24.04
2
3 # Install additional dependencies
4 RUN apt-get update && \
5     apt-get install -y \
6         git \
7                 wget \
8         zip \
9         unzip \
10                 php \
11                 php-bcmath php-curl php-mbstring php-gd php-xml php-zip php-mysql php-ldap \
12        && \
13     rm -rf /var/lib/apt/lists/*
14
15 # Take branch as an argument so we can choose which BookStack
16 # branch to test against
17 ARG BRANCH=development
18
19 # Download BookStack & install PHP deps
20 RUN mkdir -p /var/www && \
21     git clone https://github.com/bookstackapp/bookstack.git --branch "$BRANCH" --single-branch /var/www/bookstack && \
22     cd /var/www/bookstack && \  
23    wget https://raw.githubusercontent.com/composer/getcomposer.org/f3108f64b4e1c1ce6eb462b159956461592b3e3e/web/installer -O - -q | php -- --quiet --filename=composer && \
24     php composer install
25
26 # Set the BookStack dir as the default working dir
27 WORKDIR /var/www/bookstack
28
29 # Set the default action as running php
30 ENTRYPOINT ["/bin/php"]