-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (30 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
34 lines (30 loc) · 1.04 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
FROM php:7.4.15-apache-buster
RUN apt-get update &&\
apt-get install -y \
mariadb-client \
git \
zip \
unzip \
iputils-ping &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libicu-dev \
libgmp-dev \
libsodium-dev \
&& pecl install libsodium mcrypt mongodb \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gmp gd opcache iconv intl pdo_mysql pcntl bcmath \
&& docker-php-ext-enable mcrypt mongodb \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY config/opcache.ini $PHP_INI_DIR/conf.d/
# install php composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/local/bin/composer