-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (55 loc) · 1.75 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM php:7.2-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
sudo \
libjpeg62-turbo-dev \
libmcrypt-dev \
libncurses5-dev \
libicu-dev \
libmemcached-dev \
libcurl4-openssl-dev \
libpng-dev \
libgmp-dev \
libxml2-dev \
libldap2-dev \
curl \
zlib1g-dev \
msmtp \
antiword \
poppler-utils \
html2text \
unrtf \
git \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install soap
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/
RUN docker-php-ext-install ldap && \
docker-php-ext-install mysqli && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-install soap && \
docker-php-ext-install intl && \
docker-php-ext-install gd && \
docker-php-ext-install gmp && \
docker-php-ext-install zip
RUN docker-php-ext-install gd
WORKDIR /tmp
RUN git clone https://github.com/opencats/OpenCATS.git opencats && \
git -C opencats checkout `git -C opencats describe --tags $(git -C opencats rev-list --tags --max-count=1)`
RUN cp -r /tmp/opencats/. /var/www/html/
WORKDIR /var/www/html
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
composer install
RUN chown -R www-data:www-data /var/www/html/
RUN rm -rf /etc/apache2/sites-available/000-default.conf
RUN echo '<VirtualHost *:80>\n\
DocumentRoot /var/www/html\n\
<Directory /var/www/html>\n\
AllowOverride All\n\
Require all granted\n\
DirectoryIndex index.php index.html\n\
</Directory>\n\
</VirtualHost>' > /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite
CMD ["apache2-foreground"]