3 # Install additional dependencies
4 RUN apt-get update && \
11 php-bcmath php-curl php-mbstring php-gd php-xml php-zip php-mysql php-ldap \
13 rm -rf /var/lib/apt/lists/*
15 # Take branch as an argument so we can choose which BookStack
16 # branch to test against
17 ARG BRANCH=development
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 && \
26 # Set the BookStack dir as the default working dir
27 WORKDIR /var/www/bookstack
29 # Set the default action as running php
30 ENTRYPOINT ["/bin/php"]