summaryrefslogtreecommitdiff
path: root/tests/docker/Dockerfile.xenial
blob: a48d05252b2020268813a433b8c430e99cbebc92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:16.04

RUN mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/supervisor

RUN apt-get update -qq && \
    apt-get install -y apache2 supervisor cron curl unzip \
    libapache2-mod-php7.0 php7.0-cli php7.0-mbstring php7.0-xml php7.0-mysql php7.0-sqlite3 \
    php7.0-opcache php7.0-json php7.0-pgsql php7.0-ldap php7.0-gd php7.0-zip && \
    apt clean && \
    echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
    sed -ri 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf && \
    a2enmod rewrite && \
    curl -sS https://getcomposer.org/installer | php -- --filename=/usr/local/bin/composer

COPY . /var/www/html

RUN chown -R www-data:www-data /var/www/html/data /var/www/html/plugins

COPY tests/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY tests/configs /configs/

EXPOSE 80

ENTRYPOINT ["/var/www/html/tests/docker/entrypoint.sh"]