forked from muze-nl/federated-timesheets-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-tikiwiki
28 lines (26 loc) · 995 Bytes
/
Dockerfile-tikiwiki
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM php:7.4-apache
RUN apt-get update && \
apt-get install -y \
git \
zlib1g-dev \
libpng-dev \
libzip-dev \
libicu-dev \
tesseract-ocr
RUN docker-php-ext-install mysqli pdo pdo_mysql gd zip intl calendar bcmath
RUN a2enmod rewrite
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN git clone --depth 1 https://gitlab.com/tikiwiki/tiki.git /var/www/html
WORKDIR /var/www/html
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN chown -R www-data:www-data /var/www/html
RUN composer install --working-dir /var/www/html/vendor_bundled --prefer-dist
COPY tiki/tiki-db-local.php /var/www/html/db/local.php
COPY tiki/timesheets-profile.yml /profile/timesheets-profile.yml
COPY tiki/init.sh /usr/local/bin/tiki-init.sh
COPY tiki/addusers.sh /profile/addusers.sh
COPY tiki/add-credentials.php /profile/add-credentials.php
RUN chmod 775 /usr/local/bin/tiki-init.sh
COPY tiki/add-api-token.php /usr/local/bin/add-api-token.php
EXPOSE 80
CMD ["apache2-foreground"]