-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.3.22-apache-wordpress.Dockerfile
More file actions
29 lines (26 loc) · 1.06 KB
/
7.3.22-apache-wordpress.Dockerfile
File metadata and controls
29 lines (26 loc) · 1.06 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
FROM php:7.3.22-apache
# Install Extensions
RUN apt-get update \
&& apt-get install -y \
libpcre3-dev \
zlib1g-dev \
libbz2-dev \
libpng-dev \
libjpeg-dev \
git \
zip \
unzip \
rsync \
default-mysql-client \
&& apt-get -y autoremove \
&& apt-get -y clean
COPY .php/install-php-extensions /usr/bin/install-php-extensions
RUN chmod uga+x /usr/bin/install-php-extensions
RUN install-php-extensions mysqli pdo_mysql gd imagick mcrypt exif zip bz2
# 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');"