-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (37 loc) · 1.09 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
FROM php:7.2
RUN apt-get update --fix-missing
RUN apt-get upgrade -qy
RUN apt-get install -qy \
git \
ssh \
curl \
libmcrypt-dev \
zip \
unzip \
libicu-dev \
libc-client-dev \
libkrb5-dev \
libfreetype6-dev \
libjpeg62-turbo-dev
RUN rm /etc/apt/preferences.d/no-debian-php
RUN apt-get install -qy libxml2-dev
RUN apt-get update --fix-missing
RUN apt-get upgrade -qy
RUN apt-get autoremove -qy
RUN pecl install mcrypt-1.0.2
RUN docker-php-ext-install soap
RUN docker-php-ext-install pdo_mysql bcmath zip
RUN docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/
RUN docker-php-ext-configure imap \
--with-kerberos \
--with-imap-ssl
RUN docker-php-ext-configure intl
RUN docker-php-ext-install -j$(nproc) imap gd
RUN docker-php-ext-install intl
ENV COMPOSER_HOME /composer
ENV PATH ./vendor/bin:/composer/vendor/bin:$PATH
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
RUN composer --version
RUN composer global require hirak/prestissimo