-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (21 loc) · 821 Bytes
/
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
FROM php:7.4-apache
# Diretorio de trabalho
WORKDIR "/var/www"
# Pacotes do OS
RUN apt update && apt install -y \
zlib1g-dev libzip-dev \
libbz2-dev libxml2-dev libpng-dev \
cron
# Biblioteca do PHP
RUN docker-php-ext-install \
zip bz2 calendar dom gd \
intl pcntl bcmath mysqli \
pdo_mysql opcache
# Instalação xdebug e opcache
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
# Instalação do composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
EXPOSE 80