-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.3.22-apache.Dockerfile
More file actions
63 lines (59 loc) · 2 KB
/
7.3.22-apache.Dockerfile
File metadata and controls
63 lines (59 loc) · 2 KB
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
FROM php:7.3.22-apache
# Install PHP extensions
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
build-essential \
software-properties-common \
cron \
git \
htop \
wget \
dos2unix \
curl \
libcurl4-gnutls-dev \
sudo \
libc-client-dev \
libkrb5-dev \
libmcrypt-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
libjpeg-dev \
libmagickwand-dev \
libpng-dev \
libgif-dev \
libtiff-dev \
libz-dev \
libpq-dev \
imagemagick \
graphicsmagick \
libwebp-dev \
libjpeg62-turbo-dev \
libxpm-dev \
libaprutil1-dev \
libicu-dev \
libfreetype6-dev \
unzip \
nano \
zip \
mariadb-client \
default-mysql-client \
mycli \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/* \
&& rm /etc/cron.daily/*
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl && \
docker-php-ext-install imap && \
docker-php-ext-enable imap
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib \
&& docker-php-ext-install gd \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install intl mbstring mysqli curl pdo_mysql zip opcache bcmath gd \
&& docker-php-ext-enable intl mbstring mysqli curl pdo_mysql zip opcache bcmath gd
# Install composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "copy('https://composer.github.io/installer.sig', 'composer-setup.sig');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('composer-setup.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=1.10.13
RUN php -r "unlink('composer-setup.php');"
RUN php -r "unlink('composer-setup.sig');"