-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (44 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
56 lines (44 loc) · 1.11 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM php:7.3-cli
LABEL PH2M <contact@ph2m.com>
# Install dependencies
RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libxslt1-dev \
sendmail-bin \
sendmail \
sudo \
cron \
rsyslog \
default-mysql-client \
git \
libzip-dev
# Install required PHP extensions
RUN docker-php-ext-install \
dom \
gd \
intl \
mbstring \
pdo_mysql \
xsl \
zip \
soap \
bcmath \
calendar \
pcntl
# Configure the gd library
RUN docker-php-ext-configure \
gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-configure \
calendar
ENV PHP_MEMORY_LIMIT 2G
VOLUME /root/.composer/cache
# Get composer installed to /usr/local/bin/composer
RUN curl -sS https://getcomposer.org/installer | php -- --version=1.10.17 --install-dir=/usr/local/bin --filename=composer
RUN curl -LO https://deployer.org/deployer.phar && chmod +x ./deployer.phar && mv ./deployer.phar /usr/local/bin/dep
RUN ["chmod", "+x", "/usr/local/bin/dep"]
CMD ["bash"]