-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
32 lines (27 loc) · 877 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
28
29
30
31
32
FROM php:7.4-fpm
MAINTAINER wearelighthouse <christy@wearelighthouse.com>
# Update and requirements for extensions
RUN apt-get update \
&& apt-get install -y \
vim \
g++ \
# exif requirements
libexif-dev \
# gd requirements
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
# intl requirements
libicu-dev
# PHP extensions
RUN docker-php-ext-install -j$(nproc) exif \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install intl \
&& docker-php-ext-install -j$(nproc) mysqli pdo_mysql \
&& docker-php-ext-install zip
# Composer
RUN curl -sSL https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& apt-get install -y git zip unzip
COPY config/uploads.ini /usr/local/etc/php/conf.d/