-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 818 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 818 Bytes
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.3
WORKDIR /var/www
COPY . .
RUN apt-get update && \
apt-get install -y libzip-dev libxml2-dev \
libfreetype6-dev libjpeg62-turbo-dev \
libgd-dev libpng-dev && \
docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) zip soap gd && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN pecl install xdebug \
pecl install gmagick \
&& docker-php-ext-enable xdebug \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.remote_host = host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
EXPOSE 8181
RUN composer install
CMD php -S 0.0.0.0:8181