-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (37 loc) · 1.2 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
FROM php:7.2-fpm-alpine
RUN apk upgrade --update && apk add \
coreutils \
freetype-dev \
libjpeg-turbo-dev \
libxml2-dev \
openldap-dev \
libltdl \
libmcrypt-dev \
libpng-dev \
antiword \
poppler-utils \
html2text \
alpine-sdk \
autoconf \
automake
RUN cd ~ && \
wget http://www.gnu.org/software/unrtf/unrtf-0.21.9.tar.gz && \
tar xzvf unrtf-0.21.9.tar.gz && \
cd unrtf-0.21.9/ && \
./bootstrap && \
./configure && \
make && \
make install
RUN apk add libmcrypt-dev
RUN pecl install mcrypt-1.0.1 && docker-php-ext-enable mcrypt
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j5 mysqli gd soap zip ldap
ADD scripts/install-composer.sh /opt/install-composer.sh
RUN dos2unix /opt/install-composer.sh && \
chmod +x /opt/install-composer.sh && \
/opt/install-composer.sh && \
mv /var/www/html/composer.phar /usr/local/bin/composer
ENV DOCKERIZE_VERSION v0.2.0
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN php -i | grep "mcrypt"